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 GetState
channelGroups(java.util.List<java.lang.String> channelGroups)
GetState
channels(java.util.List<java.lang.String> channels)
protected PNGetStateResult
createResponse(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 PNOperationType
getOperationType()
protected boolean
isAuthRequired()
GetState
uuid(java.lang.String uuid)
protected void
validateParams()
-
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:
getAffectedChannels
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in 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:
doWork
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
createResponse
protected PNGetStateResult createResponse(retrofit2.Response<Envelope<com.google.gson.JsonElement>> input) throws PubNubException
- Specified by:
createResponse
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNGetStateResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in 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
.
-
-