Skip to content

Commit 83db744

Browse files
committed
flash message
1 parent 9a2650d commit 83db744

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

mobtextingsms/src/main/java/com/mobtexting/Interface.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Call<ServerResponse> post(
1616
@Field("api_key") String method,
1717
@Field("message") String username,
1818
@Field("mobile_no") String password,
19-
@Field("sender_id") String sender_id
19+
@Field("sender_id") String sender_id,
20+
@Field("flash") boolean flashSend
2021
);
2122

2223
@GET("/v1/sms/")

mobtextingsms/src/main/java/com/mobtexting/Mobtexting.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ public class Mobtexting {
2626
private Retrofit retrofit;
2727
private String api_key1, sender_id;
2828
private Context context;
29+
private boolean flashSend;
30+
31+
public boolean isFlashSend() {
32+
return flashSend;
33+
}
34+
35+
public void setFlashMessageSend(boolean flashSend) {
36+
this.flashSend = flashSend;
37+
}
38+
39+
2940

3041
/**
3142
* @param context
@@ -34,6 +45,8 @@ public Mobtexting(Context context) {
3445
this.context = context;
3546
}
3647

48+
49+
3750
/**
3851
* send SMS using POST method
3952
*
@@ -66,7 +79,7 @@ public void sendSMS(String message, String mobile_no, final MobtextingInterface
6679

6780
Interface service = retrofit.create(Interface.class);
6881

69-
Call<ServerResponse> call = service.post(api_key1, message, mobile_no, sender_id);
82+
Call<ServerResponse> call = service.post(api_key1, message, mobile_no, sender_id,flashSend);
7083

7184
call.enqueue(new Callback<ServerResponse>() {
7285
@Override

0 commit comments

Comments
 (0)