File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
package sms ;
2
2
3
- import com .sinch .sdk .domains .sms .*;
4
- import com .sinch .sdk .domains .sms .models .*;
5
- import com .sinch .sdk .domains .sms .models .requests .*;
3
+ import com .sinch .sdk .domains .sms .api .v1 .BatchesService ;
4
+ import com .sinch .sdk .domains .sms .api .v1 .SMSService ;
5
+ import com .sinch .sdk .domains .sms .models .v1 .batches .request .TextRequest ;
6
+ import com .sinch .sdk .domains .sms .models .v1 .batches .response .BatchResponse ;
6
7
import java .util .Collections ;
7
8
import java .util .logging .Logger ;
8
9
@@ -19,9 +20,9 @@ static void execute(SMSService smsService) {
19
20
String body = "This is a test SMS message using the Sinch Java SDK." ;
20
21
21
22
LOGGER .info ("Sending SMS Text" );
22
- BatchText value =
23
+ BatchResponse value =
23
24
batchesService .send (
24
- SendSmsBatchTextRequest .builder ()
25
+ TextRequest .builder ()
25
26
.setTo (Collections .singletonList (recipient ))
26
27
.setBody (body )
27
28
.setFrom (from )
You can’t perform that action at this time.
0 commit comments