Skip to content

Commit 9a8fd94

Browse files
committed
Adds interface methods for modifying events synchronously and asynchronously.
1 parent 9a6677c commit 9a8fd94

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/main/java/com/robinpowered/sdk/service/EventService.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import retrofit.Callback;
88
import retrofit.http.Body;
99
import retrofit.http.GET;
10+
import retrofit.http.PATCH;
1011
import retrofit.http.POST;
1112
import retrofit.http.Path;
1213
import retrofit.http.QueryMap;
@@ -25,6 +26,14 @@ public interface EventService {
2526
@GET("/events/{eventId}")
2627
void getEvent(@Path("eventId") int eventId, @QueryMap Map<String, Object> options, Callback<ApiResponse<Event>> callback);
2728

29+
// Sync
30+
@PATCH("/events/{eventId}")
31+
ApiResponse<Event> updateEvent(@Path("eventId") int eventId, @Body Event event) throws IOException;
32+
33+
// Async
34+
@PATCH("/events/{eventId}")
35+
void updateEvent(@Path("eventId") int eventId, @Body Event event, Callback<ApiResponse<Event>> callback);
36+
2837
// Sync
2938
@DELETE("/events/{eventId}")
3039
ApiResponse<Void> deleteEvent(@Path("eventId") int eventId) throws IOException;

0 commit comments

Comments
 (0)