Class HereNow
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
- com.pubnub.api.endpoints.presence.HereNow
-
- All Implemented Interfaces:
RemoteAction<PNHereNowResult>
public class HereNow extends Endpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
-
Constructor Summary
Constructors Constructor Description HereNow(PubNub pubnubInstance, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HereNow
channelGroups(java.util.List<java.lang.String> channelGroups)
HereNow
channels(java.util.List<java.lang.String> channels)
protected PNHereNowResult
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()
HereNow
includeState(java.lang.Boolean includeState)
HereNow
includeUUIDs(java.lang.Boolean includeUUIDs)
protected boolean
isAuthRequired()
protected void
validateParams()
-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
HereNow
public HereNow(PubNub pubnubInstance, 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>,PNHereNowResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
- 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>,PNHereNowResult>
-
createResponse
protected PNHereNowResult createResponse(retrofit2.Response<Envelope<com.google.gson.JsonElement>> input)
- Specified by:
createResponse
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in classEndpoint<Envelope<com.google.gson.JsonElement>,PNHereNowResult>
-
channels
public HereNow channels(java.util.List<java.lang.String> channels)
- Returns:
this
.
-
channelGroups
public HereNow channelGroups(java.util.List<java.lang.String> channelGroups)
- Returns:
this
.
-
includeState
public HereNow includeState(java.lang.Boolean includeState)
- Returns:
this
.
-
includeUUIDs
public HereNow includeUUIDs(java.lang.Boolean includeUUIDs)
- Returns:
this
.
-
-