public class History extends Endpoint<com.google.gson.JsonElement,PNHistoryResult>
| Constructor and Description |
|---|
History(PubNub pubnub,
TelemetryManager telemetryManager,
RetrofitManager retrofit) |
| Modifier and Type | Method and Description |
|---|---|
History |
channel(java.lang.String channel) |
History |
count(java.lang.Integer count) |
protected PNHistoryResult |
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) |
History |
end(java.lang.Long end) |
protected java.util.List<java.lang.String> |
getAffectedChannelGroups() |
protected java.util.List<java.lang.String> |
getAffectedChannels() |
protected PNOperationType |
getOperationType() |
History |
includeTimetoken(java.lang.Boolean includeTimetoken) |
protected boolean |
isAuthRequired() |
History |
reverse(java.lang.Boolean reverse) |
History |
start(java.lang.Long start) |
protected void |
validateParams() |
async, createBaseParams, encodeParams, getPubnub, getRetrofit, queryParam, retry, silentCancel, syncpublic History(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit)
protected java.util.List<java.lang.String> getAffectedChannels()
getAffectedChannels in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>protected java.util.List<java.lang.String> getAffectedChannelGroups()
getAffectedChannelGroups in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>protected void validateParams()
throws PubNubException
validateParams in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>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,PNHistoryResult>protected PNHistoryResult createResponse(retrofit2.Response<com.google.gson.JsonElement> input) throws PubNubException
createResponse in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>PubNubExceptionprotected PNOperationType getOperationType()
getOperationType in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>protected boolean isAuthRequired()
isAuthRequired in class Endpoint<com.google.gson.JsonElement,PNHistoryResult>public History channel(java.lang.String channel)
public History start(java.lang.Long start)
public History end(java.lang.Long end)
public History reverse(java.lang.Boolean reverse)
public History count(java.lang.Integer count)
public History includeTimetoken(java.lang.Boolean includeTimetoken)