Package com.pubnub.api.endpoints
Class History
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<com.google.gson.JsonElement,PNHistoryResult>
-
- com.pubnub.api.endpoints.History
-
- All Implemented Interfaces:
RemoteAction<PNHistoryResult>
public class History extends Endpoint<com.google.gson.JsonElement,PNHistoryResult>
-
-
Constructor Summary
Constructors Constructor Description History(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Historychannel(java.lang.String channel)Historycount(java.lang.Integer count)protected PNHistoryResultcreateResponse(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)Historyend(java.lang.Long end)protected java.util.List<java.lang.String>getAffectedChannelGroups()protected java.util.List<java.lang.String>getAffectedChannels()protected PNOperationTypegetOperationType()HistoryincludeMeta(java.lang.Boolean includeMeta)HistoryincludeTimetoken(java.lang.Boolean includeTimetoken)protected booleanisAuthRequired()Historyreverse(java.lang.Boolean reverse)Historystart(java.lang.Long start)protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
History
public History(PubNub pubnub, TelemetryManager telemetryManager, RetrofitManager retrofit, TokenManager tokenManager)
-
-
Method Detail
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannelsin classEndpoint<com.google.gson.JsonElement,PNHistoryResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<com.google.gson.JsonElement,PNHistoryResult>
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<com.google.gson.JsonElement,PNHistoryResult>- Throws:
PubNubException
-
doWork
protected retrofit2.Call<com.google.gson.JsonElement> doWork(java.util.Map<java.lang.String,java.lang.String> params)
- Specified by:
doWorkin classEndpoint<com.google.gson.JsonElement,PNHistoryResult>
-
createResponse
protected PNHistoryResult createResponse(retrofit2.Response<com.google.gson.JsonElement> input) throws PubNubException
- Specified by:
createResponsein classEndpoint<com.google.gson.JsonElement,PNHistoryResult>- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationTypein classEndpoint<com.google.gson.JsonElement,PNHistoryResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<com.google.gson.JsonElement,PNHistoryResult>
-
channel
public History channel(java.lang.String channel)
- Returns:
this.
-
start
public History start(java.lang.Long start)
- Returns:
this.
-
end
public History end(java.lang.Long end)
- Returns:
this.
-
reverse
public History reverse(java.lang.Boolean reverse)
- Returns:
this.
-
count
public History count(java.lang.Integer count)
- Returns:
this.
-
includeTimetoken
public History includeTimetoken(java.lang.Boolean includeTimetoken)
- Returns:
this.
-
includeMeta
public History includeMeta(java.lang.Boolean includeMeta)
- Returns:
this.
-
-