Class GetState
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
- com.pubnub.api.endpoints.presence.GetState
-
- All Implemented Interfaces:
RemoteAction<PNGetStateResult>
public class GetState extends Endpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
-
Constructor Summary
Constructors Constructor Description GetState(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetStatechannelGroups(java.util.List<java.lang.String> channelGroups)GetStatechannels(java.util.List<java.lang.String> channels)protected PNGetStateResultcreateResponse(retrofit2.Response<Envelope<com.google.gson.JsonElement>> input)protected retrofit2.Call<Envelope<com.google.gson.JsonElement>>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 PNOperationTypegetOperationType()protected booleanisAuthRequired()GetStateuuid(java.lang.String uuid)protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
GetState
public GetState(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
-
Method Detail
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannelsin classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>- Throws:
PubNubException
-
doWork
protected retrofit2.Call<Envelope<com.google.gson.JsonElement>> doWork(java.util.Map<java.lang.String,java.lang.String> params)
- Specified by:
doWorkin classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
createResponse
protected PNGetStateResult createResponse(retrofit2.Response<Envelope<com.google.gson.JsonElement>> input) throws PubNubException
- Specified by:
createResponsein classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationTypein classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
channels
public GetState channels(java.util.List<java.lang.String> channels)
- Returns:
this.
-
channelGroups
public GetState channelGroups(java.util.List<java.lang.String> channelGroups)
- Returns:
this.
-
uuid
public GetState uuid(java.lang.String uuid)
- Returns:
this.
-
-