Skip to content

Commit ff72668

Browse files
committed
flash removed
1 parent 22ce26b commit ff72668

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

app/src/main/java/com/mobtexting/sms/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ protected void onCreate(Bundle savedInstanceState) {
1818
setContentView(R.layout.activity_main);
1919

2020
mobtexting=new Mobtexting(this);
21-
mobtexting.setFlashMessageSend(true);
2221
mobtexting.sendSMS("This is a test","7488792140",this);
2322
}
2423

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ 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,
20-
@Field("flash") int flashSend
19+
@Field("sender_id") String sender_id
2120
);
2221

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

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ 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-
4029

4130
/**
4231
* @param context
@@ -45,8 +34,6 @@ public Mobtexting(Context context) {
4534
this.context = context;
4635
}
4736

48-
49-
5037
/**
5138
* send SMS using POST method
5239
*
@@ -79,8 +66,7 @@ public void sendSMS(String message, String mobile_no, final MobtextingInterface
7966

8067
Interface service = retrofit.create(Interface.class);
8168

82-
int flashSet=flashSend==true?1:0;
83-
Call<ServerResponse> call = service.post(api_key1, message, mobile_no, sender_id,flashSet);
69+
Call<ServerResponse> call = service.post(api_key1, message, mobile_no, sender_id);
8470

8571
call.enqueue(new Callback<ServerResponse>() {
8672
@Override

0 commit comments

Comments
 (0)