Skip to content

Commit ba97838

Browse files
committed
Adding basic GET endpoints for amenities.
1 parent 0541065 commit ba97838

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/main/java/com/robinpowered/sdk/model/Calendar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* automatically be synced to the space.
1313
*
1414
* <p>
15-
* Spaces without calendars are considered "breakout" spaces are not able to be reserved.
15+
* Spaces without calendars are considered "on demand" spaces are not able to be reserved.
1616
*/
1717
public class Calendar implements ApiResponseModel {
1818

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.robinpowered.sdk.service;
22

3+
import com.robinpowered.sdk.model.Amenity;
34
import com.robinpowered.sdk.model.ApiResponse;
45
import com.robinpowered.sdk.model.Organization;
56
import com.robinpowered.sdk.model.Presence;
@@ -77,4 +78,12 @@ public interface AccountService {
7778
// Async
7879
@GET("/organizations/{id}/users")
7980
void getOrganizationUsers(@Path("id") Organization.Reference id, @QueryMap Map<String, Object> options, Callback<ApiResponse<List<User>>> callback);
81+
82+
// Sync
83+
@GET("/organizations/{id}/amenities")
84+
ApiResponse<List<Amenity>> getAmenities(@Path("id") Organization.Reference id, @QueryMap Map<String, Object> options) throws IOException;
85+
86+
// Async
87+
@GET("/organizations/{id}/amenities")
88+
void getAmenities(@Path("id") Organization.Reference id, @QueryMap Map<String, Object> options, Callback<ApiResponse<List<Amenity>>> callback);
8089
}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.robinpowered.sdk.service;
22

33
import com.robinpowered.sdk.http.DELETE;
4+
import com.robinpowered.sdk.model.Amenity;
45
import com.robinpowered.sdk.model.ApiResponse;
56
import com.robinpowered.sdk.model.Calendar;
67
import com.robinpowered.sdk.model.Dibs;
@@ -118,6 +119,14 @@ public interface PlacesService {
118119
@DELETE("/spaces/{id}/presence")
119120
void deletePresence(@Path("id") int id, @Body Presence.Occurrence presenceOccurrence, Callback<ApiResponse<Void>> callback);
120121

122+
// Sync
123+
@GET("/spaces/{id}/amenities")
124+
ApiResponse<List<Amenity>> getAmenities(@Path("id") int id, @QueryMap Map<String, Object> options) throws IOException;
125+
126+
// Async
127+
@GET("/spaces/{id}/amenities")
128+
void getAmenities(@Path("id") int id, @QueryMap Map<String, Object> options, Callback<ApiResponse<List<Amenity>>> callback);
129+
121130

122131
/**
123132
* Dibs

0 commit comments

Comments
 (0)