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 PNHistoryItemResult
build()
PNHistoryItemResult.PNHistoryItemResultBuilder
entry(com.google.gson.JsonElement entry)
PNHistoryItemResult.PNHistoryItemResultBuilder
error(PubNubError error)
The error associated with message retrieval, if any.PNHistoryItemResult.PNHistoryItemResultBuilder
meta(com.google.gson.JsonElement meta)
PNHistoryItemResult.PNHistoryItemResultBuilder
timetoken(java.lang.Long timetoken)
java.lang.String
toString()
-
-
-
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_ENCRYPTED
when 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:
toString
in classjava.lang.Object
-
-