Package com.pubnub.api.endpoints.push
Class RemoveAllPushChannelsForDevice
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
- com.pubnub.api.endpoints.push.RemoveAllPushChannelsForDevice
-
- All Implemented Interfaces:
RemoteAction<PNPushRemoveAllChannelsResult>
public class RemoveAllPushChannelsForDevice extends Endpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
-
Constructor Summary
Constructors Constructor Description RemoveAllPushChannelsForDevice(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PNPushRemoveAllChannelsResultcreateResponse(retrofit2.Response<java.util.List<java.lang.Object>> input)RemoveAllPushChannelsForDevicedeviceId(java.lang.String deviceId)protected retrofit2.Call<java.util.List<java.lang.Object>>doWork(java.util.Map<java.lang.String,java.lang.String> params)RemoveAllPushChannelsForDeviceenvironment(PNPushEnvironment environment)protected java.util.List<java.lang.String>getAffectedChannelGroups()protected java.util.List<java.lang.String>getAffectedChannels()protected PNOperationTypegetOperationType()protected booleanisAuthRequired()RemoveAllPushChannelsForDevicepushType(PNPushType pushType)RemoveAllPushChannelsForDevicetopic(java.lang.String topic)protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
RemoveAllPushChannelsForDevice
public RemoveAllPushChannelsForDevice(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
-
Method Detail
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannelsin classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>- Throws:
PubNubException
-
doWork
protected retrofit2.Call<java.util.List<java.lang.Object>> doWork(java.util.Map<java.lang.String,java.lang.String> params) throws PubNubException- Specified by:
doWorkin classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>- Throws:
PubNubException
-
createResponse
protected PNPushRemoveAllChannelsResult createResponse(retrofit2.Response<java.util.List<java.lang.Object>> input) throws PubNubException
- Specified by:
createResponsein classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationTypein classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
pushType
public RemoveAllPushChannelsForDevice pushType(PNPushType pushType)
- Returns:
this.
-
deviceId
public RemoveAllPushChannelsForDevice deviceId(java.lang.String deviceId)
- Returns:
this.
-
environment
public RemoveAllPushChannelsForDevice environment(PNPushEnvironment environment)
- Returns:
this.
-
topic
public RemoveAllPushChannelsForDevice topic(java.lang.String topic)
- Returns:
this.
-
-