public class MessageCounts extends Endpoint<com.google.gson.JsonElement,PNMessageCountResult>
| Constructor and Description |
|---|
MessageCounts(PubNub pubnub,
TelemetryManager telemetryManager,
RetrofitManager retrofit) |
| Modifier and Type | Method and Description |
|---|---|
MessageCounts |
channels(java.util.List<java.lang.String> channels)
The channel name you wish to pull history from.
|
MessageCounts |
channelsTimetoken(java.util.List<java.lang.Long> channelsTimetoken)
Comma-delimited list of timetokens, in order of the channels list, in the request path.
|
protected PNMessageCountResult |
createResponse(retrofit2.Response<com.google.gson.JsonElement> input) |
protected retrofit2.Call<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() |
protected void |
validateParams() |
async, createBaseParams, encodeParams, getPubnub, getRetrofit, queryParam, retry, silentCancel, syncpublic MessageCounts(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit)
protected java.util.List<java.lang.String> getAffectedChannels()
getAffectedChannels in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>protected java.util.List<java.lang.String> getAffectedChannelGroups()
getAffectedChannelGroups in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>protected void validateParams()
throws PubNubException
validateParams in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>PubNubExceptionprotected retrofit2.Call<com.google.gson.JsonElement> doWork(java.util.Map<java.lang.String,java.lang.String> params)
doWork in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>protected PNMessageCountResult createResponse(retrofit2.Response<com.google.gson.JsonElement> input) throws PubNubException
createResponse in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>PubNubExceptionprotected PNOperationType getOperationType()
getOperationType in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>protected boolean isAuthRequired()
isAuthRequired in class Endpoint<com.google.gson.JsonElement,PNMessageCountResult>public MessageCounts channels(java.util.List<java.lang.String> channels)
public MessageCounts channelsTimetoken(java.util.List<java.lang.Long> channelsTimetoken)