From 42de883a421f4b6c318bdfbbe713698fe77206ff Mon Sep 17 00:00:00 2001 From: markdufresne Date: Wed, 11 Jul 2018 10:15:26 -0700 Subject: [PATCH 1/2] Implement Bulk Activity - Status Report Endpoint --- .../com/constantcontact/v2/BulkActivitiesService.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java b/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java index 7a571b5e..f829ae10 100644 --- a/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java +++ b/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java @@ -44,4 +44,12 @@ public interface BulkActivitiesService { */ @GET("v2/activities/{activityId}") Call getActivityStatus(@Path("activityId") String activityId); + + /** + * Get list of {@link Activity} + * + * @return a Call that returns List + */ + @GET("v2/activities") + Call> getActivityStatuses(); } From e9475d6b568c1c40aadf82d8ef855cb2cdbc2b5e Mon Sep 17 00:00:00 2001 From: markdufresne Date: Wed, 11 Jul 2018 10:35:29 -0700 Subject: [PATCH 2/2] Added missing import --- .../java/com/constantcontact/v2/BulkActivitiesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java b/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java index f829ae10..4a118640 100644 --- a/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java +++ b/sdk/src/main/java/com/constantcontact/v2/BulkActivitiesService.java @@ -19,6 +19,7 @@ import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Path; +import java.util.List; /** * Retrofit interface for Bulk Activity calls against the Constant Contact API. @@ -48,7 +49,7 @@ public interface BulkActivitiesService { /** * Get list of {@link Activity} * - * @return a Call that returns List + * @return a Call that returns Activity List */ @GET("v2/activities") Call> getActivityStatuses();