Class PNHistoryItemResult.PNHistoryItemResultBuilder
- java.lang.Object
-
- com.pubnub.api.models.consumer.history.PNHistoryItemResult.PNHistoryItemResultBuilder
-
- Enclosing class:
- PNHistoryItemResult
public static class PNHistoryItemResult.PNHistoryItemResultBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PNHistoryItemResultbuild()PNHistoryItemResult.PNHistoryItemResultBuilderentry(com.google.gson.JsonElement entry)PNHistoryItemResult.PNHistoryItemResultBuildererror(PubNubError error)The error associated with message retrieval, if any.PNHistoryItemResult.PNHistoryItemResultBuildermeta(com.google.gson.JsonElement meta)PNHistoryItemResult.PNHistoryItemResultBuildertimetoken(java.lang.Long timetoken)java.lang.StringtoString()
-
-
-
Method Detail
-
timetoken
public PNHistoryItemResult.PNHistoryItemResultBuilder timetoken(java.lang.Long timetoken)
- Returns:
this.
-
entry
public PNHistoryItemResult.PNHistoryItemResultBuilder entry(com.google.gson.JsonElement entry)
- Returns:
this.
-
meta
public PNHistoryItemResult.PNHistoryItemResultBuilder meta(com.google.gson.JsonElement meta)
- Returns:
this.
-
error
public PNHistoryItemResult.PNHistoryItemResultBuilder error(PubNubError error)
The error associated with message retrieval, if any. Can be null. Currently, the only possible error isPubNubErrorBuilder.PNERROBJ_PNERR_CRYPTO_IS_CONFIGURED_BUT_MESSAGE_IS_NOT_ENCRYPTEDwhen the message was unencrypted, but PubNub instance is configured with a crypto module. In that case, the unencrypted message content will still be available inentry.- Returns:
this.
-
build
public PNHistoryItemResult build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-