33
44import com .sparkpost .exception .SparkPostException ;
55import com .sparkpost .model .RecipientList ;
6- import com .sparkpost .model .responses .RecipientsListRetrieveResponse ;
7- import com .sparkpost .model .responses .RecipientsListsListAllResponse ;
6+ import com .sparkpost .model .responses .RecipientListRetrieveResponse ;
7+ import com .sparkpost .model .responses .RecipientListsListAllResponse ;
88import com .sparkpost .model .responses .Response ;
99import com .sparkpost .transport .RestConnection ;
1010
@@ -28,18 +28,18 @@ public static Response create(RestConnection conn, Integer maxNumberOfRecipientE
2828 return response ;
2929 }
3030
31- public static RecipientsListRetrieveResponse retrieve (RestConnection conn , String recipientListId , Boolean showRecipients ) throws SparkPostException {
31+ public static RecipientListRetrieveResponse retrieve (RestConnection conn , String recipientListId , Boolean showRecipients ) throws SparkPostException {
3232 Endpoint ep = new Endpoint ("recipient-lists/" + recipientListId );
3333 ep .addParam ("show_recipients" , showRecipients );
3434 Response response = conn .get (ep .toString ());
3535
36- RecipientsListRetrieveResponse retrieveResponse = RecipientsListRetrieveResponse .decode (response , RecipientsListRetrieveResponse .class );
36+ RecipientListRetrieveResponse retrieveResponse = RecipientListRetrieveResponse .decode (response , RecipientListRetrieveResponse .class );
3737 return retrieveResponse ;
3838 }
3939
40- public static RecipientsListsListAllResponse listAll (RestConnection conn ) throws SparkPostException {
40+ public static RecipientListsListAllResponse listAll (RestConnection conn ) throws SparkPostException {
4141 Response response = conn .get ("recipient-lists" );
42- RecipientsListsListAllResponse listResponse = RecipientsListsListAllResponse .decode (response , RecipientsListsListAllResponse .class );
42+ RecipientListsListAllResponse listResponse = RecipientListsListAllResponse .decode (response , RecipientListsListAllResponse .class );
4343 return listResponse ;
4444 }
4545
0 commit comments