public static class PushBase.DeviceRegistrations
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
DeviceDetails |
get(java.lang.String deviceId)
Retrieves the
DeviceDetails of a device registered to receive push notifications using its deviceId. |
void |
getAsync(java.lang.String deviceId,
Callback<DeviceDetails> callback)
Asynchronously retrieves the
DeviceDetails of a device registered to receive push notifications using its deviceId. |
protected Http.Request<DeviceDetails> |
getImpl(java.lang.String deviceId) |
PaginatedResult<DeviceDetails> |
list(Param[] params)
Retrieves all devices matching the filter params provided.
|
void |
listAsync(Param[] params,
Callback<AsyncPaginatedResult<DeviceDetails>> callback)
Asynchronously retrieves all devices matching the filter params provided.
|
protected BasePaginatedQuery.ResultRequest<DeviceDetails> |
listImpl(Param[] params) |
void |
remove(DeviceDetails device)
Removes a device registered to receive push notifications from Ably using the id property of a
DeviceDetails object. |
void |
remove(java.lang.String deviceId)
Removes a device registered to receive push notifications from Ably using its deviceId.
|
void |
removeAsync(DeviceDetails device,
CompletionListener listener)
Asynchronously removes a device registered to receive push notifications from Ably using the id property of a
DeviceDetails object. |
void |
removeAsync(java.lang.String deviceId,
CompletionListener listener)
Asynchronously removes a device registered to receive push notifications from Ably using its deviceId.
|
protected Http.Request<java.lang.Void> |
removeImpl(java.lang.String deviceId) |
void |
removeWhere(Param[] params)
Removes all devices registered to receive push notifications from Ably matching the filter params provided.
|
void |
removeWhereAsync(Param[] params,
CompletionListener listener)
Removes all devices registered to receive push notifications from Ably matching the filter params provided.
|
protected Http.Request<java.lang.Void> |
removeWhereImpl(Param[] params) |
DeviceDetails |
save(DeviceDetails device)
Registers or updates a
DeviceDetails object with Ably. |
void |
saveAsync(DeviceDetails device,
Callback<DeviceDetails> callback)
Asynchronously registers or updates a
DeviceDetails object with Ably. |
protected Http.Request<DeviceDetails> |
saveImpl(DeviceDetails device) |
public DeviceDetails save(DeviceDetails device) throws AblyException
DeviceDetails object with Ably.
Returns the new, or updated DeviceDetails object.
Spec: RSH1b3
device - The DeviceDetails object to create or update.DeviceDetails object.AblyExceptionpublic void saveAsync(DeviceDetails device, Callback<DeviceDetails> callback)
DeviceDetails object with Ably.
Returns the new, or updated DeviceDetails object.
Spec: RSH1b3
device - The DeviceDetails object to create or update.callback - A callback returning a DeviceDetails object.protected Http.Request<DeviceDetails> saveImpl(DeviceDetails device)
public DeviceDetails get(java.lang.String deviceId) throws AblyException
DeviceDetails of a device registered to receive push notifications using its deviceId.
Spec: RSH1b1
deviceId - The unique ID of the device.DeviceDetails object.AblyExceptionpublic void getAsync(java.lang.String deviceId,
Callback<DeviceDetails> callback)
DeviceDetails of a device registered to receive push notifications using its deviceId.
Spec: RSH1b1
deviceId - The unique ID of the device.callback - A callback returning a DeviceDetails object.protected Http.Request<DeviceDetails> getImpl(java.lang.String deviceId)
public PaginatedResult<DeviceDetails> list(Param[] params) throws AblyException
PaginatedResult object, containing an array of DeviceDetails objects.
Spec: RSH1b2
params - An object containing key-value pairs to filter devices by.
Can contain clientId, deviceId and a limit on the number of devices returned, up to 1,000.PaginatedResult object containing an array of DeviceDetails objects.AblyExceptionpublic void listAsync(Param[] params, Callback<AsyncPaginatedResult<DeviceDetails>> callback)
AsyncPaginatedResult object, containing an array of DeviceDetails objects.
Spec: RSH1b2
params - An object containing key-value pairs to filter devices by.
Can contain clientId, deviceId and a limit on the number of devices returned, up to 1,000.callback - A callback returning a AsyncPaginatedResult object containing an array of DeviceDetails objects.protected BasePaginatedQuery.ResultRequest<DeviceDetails> listImpl(Param[] params)
public void remove(DeviceDetails device) throws AblyException
DeviceDetails object.
Spec: RSH1b4
device - The DeviceDetails object containing the id property of the device.AblyExceptionpublic void removeAsync(DeviceDetails device, CompletionListener listener)
DeviceDetails object.
Spec: RSH1b4
device - The DeviceDetails object containing the id property of the device.listener - A listener to be notified of success or failure.public void remove(java.lang.String deviceId)
throws AblyException
Spec: RSH1b4
deviceId - The unique ID of the device.AblyExceptionpublic void removeAsync(java.lang.String deviceId,
CompletionListener listener)
Spec: RSH1b4
deviceId - The unique ID of the device.listener - A listener to be notified of success or failure.protected Http.Request<java.lang.Void> removeImpl(java.lang.String deviceId)
public void removeWhere(Param[] params) throws AblyException
Spec: RSH1b5
params - An object containing key-value pairs to filter devices by. Can contain clientId and deviceId.AblyExceptionpublic void removeWhereAsync(Param[] params, CompletionListener listener)
Spec: RSH1b5
params - An object containing key-value pairs to filter devices by. Can contain clientId and deviceId.listener - A listener to be notified of success or failure.protected Http.Request<java.lang.Void> removeWhereImpl(Param[] params)