Class PNHistoryItemResult
- java.lang.Object
-
- com.pubnub.api.models.consumer.history.PNHistoryItemResult
-
public class PNHistoryItemResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPNHistoryItemResult.PNHistoryItemResultBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PNHistoryItemResult.PNHistoryItemResultBuilderbuilder()com.google.gson.JsonElementgetEntry()PubNubErrorgetError()The error associated with message retrieval, if any.com.google.gson.JsonElementgetMeta()java.lang.LonggetTimetoken()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static PNHistoryItemResult.PNHistoryItemResultBuilder builder()
-
getTimetoken
public java.lang.Long getTimetoken()
-
getEntry
public com.google.gson.JsonElement getEntry()
-
getMeta
public com.google.gson.JsonElement getMeta()
-
getError
public PubNubError getError()
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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-