tuweni / org.apache.tuweni.scuttlebutt.lib.model / FeedValue

FeedValue

open class FeedValue (source)

The metadata and contents of a message

Constructors

<init>

FeedValue(previous: String!, author: Author!, sequence: Long, timestamp: Long, hash: String!, content: JsonNode!)

Functions

getAuthor

open fun getAuthor(): Author!

getContentAs

The message content, deserialized to a Java class.

open fun <T : Any!> getContentAs(mapper: ObjectMapper!, clazz: Class<T>!): T

getContentAsJsonString

The message content as a JSON string.

open fun getContentAsJsonString(): String!

getHash

open fun getHash(): String!

getPrevious

open fun getPrevious(): String!

getSequence

open fun getSequence(): Long

getTimestamp

open fun getTimestamp(): Long