Package tbdex.sdk.protocol.models
Class ResourceMetadata
-
- All Implemented Interfaces:
-
tbdex.sdk.protocol.models.Metadata
public final class ResourceMetadata implements Metadata
A data class representing the metadata present on every Resource.
-
-
Field Summary
Fields Modifier and Type Field Description private final ResourceKindkindprivate final Stringfromprivate final Stringidprivate final Stringprotocolprivate final OffsetDateTimecreatedAtprivate final OffsetDateTimeupdatedAt
-
Constructor Summary
Constructors Constructor Description ResourceMetadata(ResourceKind kind, String from, String id, String protocol, OffsetDateTime createdAt, OffsetDateTime updatedAt)
-
Method Summary
Modifier and Type Method Description final ResourceKindgetKind()the data property's type. final StringgetFrom()The author's DID final StringgetId()The resource's ID final StringgetProtocol()Version of the protocol in use (x.x format). final OffsetDateTimegetCreatedAt()ISO 8601 timestamp final OffsetDateTimegetUpdatedAt()ISO 8601 timestamp -
-
Constructor Detail
-
ResourceMetadata
ResourceMetadata(ResourceKind kind, String from, String id, String protocol, OffsetDateTime createdAt, OffsetDateTime updatedAt)
-
-
Method Detail
-
getKind
final ResourceKind getKind()
the data property's type. e.g. offering
-
getProtocol
final String getProtocol()
Version of the protocol in use (x.x format). The protocol version must remain consistent across messages in a given exchange. Messages sharing the same exchangeId MUST also have the same protocol version. Protocol versions are tracked in https://github.com/TBD54566975/tbdex
-
getCreatedAt
final OffsetDateTime getCreatedAt()
ISO 8601 timestamp
-
getUpdatedAt
final OffsetDateTime getUpdatedAt()
ISO 8601 timestamp
-
-
-
-