Package com.pubnub.api.endpoints.push
Class RemoveChannelsFromPush
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
-
- com.pubnub.api.endpoints.push.RemoveChannelsFromPush
-
- All Implemented Interfaces:
RemoteAction<PNPushRemoveChannelResult>
public class RemoveChannelsFromPush extends Endpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
-
-
Constructor Summary
Constructors Constructor Description RemoveChannelsFromPush(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveChannelsFromPush
channels(java.util.List<java.lang.String> channels)
protected PNPushRemoveChannelResult
createResponse(retrofit2.Response<java.util.List<java.lang.Object>> input)
RemoveChannelsFromPush
deviceId(java.lang.String deviceId)
protected retrofit2.Call<java.util.List<java.lang.Object>>
doWork(java.util.Map<java.lang.String,java.lang.String> baseParams)
RemoveChannelsFromPush
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()
RemoveChannelsFromPush
pushType(PNPushType pushType)
RemoveChannelsFromPush
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
-
RemoveChannelsFromPush
public RemoveChannelsFromPush(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>,PNPushRemoveChannelResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
- Throws:
PubNubException
-
doWork
protected retrofit2.Call<java.util.List<java.lang.Object>> doWork(java.util.Map<java.lang.String,java.lang.String> baseParams) throws PubNubException
- Specified by:
doWork
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
- Throws:
PubNubException
-
createResponse
protected PNPushRemoveChannelResult createResponse(retrofit2.Response<java.util.List<java.lang.Object>> input) throws PubNubException
- Specified by:
createResponse
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in classEndpoint<java.util.List<java.lang.Object>,PNPushRemoveChannelResult>
-
pushType
public RemoveChannelsFromPush pushType(PNPushType pushType)
- Returns:
this
.
-
channels
public RemoveChannelsFromPush channels(java.util.List<java.lang.String> channels)
- Returns:
this
.
-
deviceId
public RemoveChannelsFromPush deviceId(java.lang.String deviceId)
- Returns:
this
.
-
environment
public RemoveChannelsFromPush environment(PNPushEnvironment environment)
- Returns:
this
.
-
topic
public RemoveChannelsFromPush topic(java.lang.String topic)
- Returns:
this
.
-
-