public class UpdatePlaceRequestExecutor extends RequestExecutor<java.lang.String>
PlacesApi. Use this class if you want to update
places through fluent API in chained fashion. Example of use:
KontaktCloud kontaktCloud = KontaktCloudFactory.create();
// define updated place object
kontaktCloud.places().update(ID)
.with(updatedPlace)
.execute();
Keep in mind that place must be specified so invocation of with method is mandatory.
Otherwise an exception will be thrown.| Constructor and Description |
|---|
UpdatePlaceRequestExecutor(PlacesService placesService,
java.util.UUID id)
Constructs request executor initialized with corresponding service class and place ID.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
execute()
Executes created request synchronously.
|
void |
execute(CloudCallback<java.lang.String> callback)
Executes created request asynchronously and invokes callback with the result.
|
UpdatePlaceRequestExecutor |
with(Place place)
Specifies place data to update.
|
public UpdatePlaceRequestExecutor(PlacesService placesService, java.util.UUID id)
placesService - the places API service.id - the place's identifier.public UpdatePlaceRequestExecutor with(Place place)
place - updated place data.public java.lang.String execute()
throws java.io.IOException,
KontaktCloudException
execute in class RequestExecutor<java.lang.String>java.io.IOException - exceptionKontaktCloudException - exceptionpublic void execute(CloudCallback<java.lang.String> callback)
execute in class RequestExecutor<java.lang.String>callback - the callback object.