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 PNPushRemoveAllChannelsResult
createResponse(retrofit2.Response<java.util.List<java.lang.Object>> input)
RemoveAllPushChannelsForDevice
deviceId(java.lang.String deviceId)
protected retrofit2.Call<java.util.List<java.lang.Object>>
doWork(java.util.Map<java.lang.String,java.lang.String> params)
RemoveAllPushChannelsForDevice
environment(PNPushEnvironment environment)
protected java.util.List<java.lang.String>
getAffectedChannelGroups()
protected java.util.List<java.lang.String>
getAffectedChannels()
protected PNOperationType
getOperationType()
protected boolean
isAuthRequired()
RemoveAllPushChannelsForDevice
pushType(PNPushType pushType)
RemoveAllPushChannelsForDevice
topic(java.lang.String topic)
protected void
validateParams()
-
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:
getAffectedChannels
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in 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:
doWork
in 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:
createResponse
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveAllChannelsResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in 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
.
-
-