public class PlaceService extends EvrythngServiceBase
/places endpoint of the EVRYTHNG API.| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_PLACE |
static String |
PATH_PLACES |
| Constructor and Description |
|---|
PlaceService(ApiManager apiManager) |
| Modifier and Type | Method and Description |
|---|---|
EvrythngApiBuilder.Builder<Place> |
placeCreator(Place place)
Creates a new
Place. |
EvrythngApiBuilder.Builder<Boolean> |
placeDeleter(String placeId)
Deletes the referenced
Place. |
EvrythngApiBuilder.Builder<Place> |
placeReader(String placeId)
Retrieves the referenced
Place. |
EvrythngApiBuilder.Builder<List<Place>> |
placesReader()
Retrieves list of all
Place resources. |
EvrythngApiBuilder.Builder<Place> |
placeUpdater(String placeId,
Place place)
Updates the referenced
Place. |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_PLACES
public static final String PATH_PLACE
public PlaceService(ApiManager apiManager)
apiManager - ApiManager instancepublic EvrythngApiBuilder.Builder<Place> placeCreator(Place place) throws EvrythngClientException
place - Place instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<List<Place>> placesReader() throws EvrythngClientException
EvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Place> placeReader(String placeId) throws EvrythngClientException
Place.
GET "/places/%s"
placeId - place idEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Place> placeUpdater(String placeId, Place place) throws EvrythngClientException
Place.
PUT "/places/%s"
placeId - place idplace - Place instanceEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> placeDeleter(String placeId) throws EvrythngClientException
Place.
DELETE "/places/%s"
placeId - place idEvrythngClientExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.