Class RemoveMessageAction
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<java.lang.Object,PNRemoveMessageActionResult>
-
- com.pubnub.api.endpoints.message_actions.RemoveMessageAction
-
- All Implemented Interfaces:
RemoteAction<PNRemoveMessageActionResult>
public class RemoveMessageAction extends Endpoint<java.lang.Object,PNRemoveMessageActionResult>
-
-
Constructor Summary
Constructors Constructor Description RemoveMessageAction(PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveMessageAction
actionTimetoken(java.lang.Long actionTimetoken)
RemoveMessageAction
channel(java.lang.String channel)
protected PNRemoveMessageActionResult
createResponse(retrofit2.Response<java.lang.Object> input)
protected retrofit2.Call<java.lang.Object>
doWork(java.util.Map<java.lang.String,java.lang.String> params)
protected java.util.List<java.lang.String>
getAffectedChannelGroups()
protected java.util.List<java.lang.String>
getAffectedChannels()
protected PNOperationType
getOperationType()
protected boolean
isAuthRequired()
RemoveMessageAction
messageTimetoken(java.lang.Long messageTimetoken)
protected void
validateParams()
-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
RemoveMessageAction
public RemoveMessageAction(PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, TokenManager tokenManager)
-
-
Method Detail
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannels
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
- Throws:
PubNubException
-
doWork
protected retrofit2.Call<java.lang.Object> doWork(java.util.Map<java.lang.String,java.lang.String> params) throws PubNubException
- Specified by:
doWork
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
- Throws:
PubNubException
-
createResponse
protected PNRemoveMessageActionResult createResponse(retrofit2.Response<java.lang.Object> input) throws PubNubException
- Specified by:
createResponse
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in classEndpoint<java.lang.Object,PNRemoveMessageActionResult>
-
channel
public RemoveMessageAction channel(java.lang.String channel)
- Returns:
this
.
-
messageTimetoken
public RemoveMessageAction messageTimetoken(java.lang.Long messageTimetoken)
- Returns:
this
.
-
actionTimetoken
public RemoveMessageAction actionTimetoken(java.lang.Long actionTimetoken)
- Returns:
this
.
-
-