Package tbdex.sdk.resources
Class ResourceMetadata
-
- All Implemented Interfaces:
public final class ResourceMetadataRepresents metadata associated with a tbDEX resource.
Metadata provides information about the resource, such as its type, origin, creation time, and protocol version.
-
-
Constructor Summary
Constructors Constructor Description ResourceMetadata(ResourceKind kind, String from, String id, String protocol, String createdAt, String updatedAt)
-
Method Summary
Modifier and Type Method Description final ResourceKindgetKind()The kind of resource (e.g., OFFERING, BALANCE). final StringgetFrom()The DID of the sender of the resource. final StringgetId()The unique identifier for the resource. final StringgetProtocol()The version of the tbDEX protocol in use. final StringgetCreatedAt()The timestamp when the resource was created (in ISO 8601 format). final StringgetUpdatedAt()The optional timestamp of the last update to the resource (in ISO 8601 format). -
-
Method Detail
-
getKind
final ResourceKind getKind()
The kind of resource (e.g., OFFERING, BALANCE).
-
getProtocol
final String getProtocol()
The version of the tbDEX protocol in use.
-
getCreatedAt
final String getCreatedAt()
The timestamp when the resource was created (in ISO 8601 format).
-
getUpdatedAt
final String getUpdatedAt()
The optional timestamp of the last update to the resource (in ISO 8601 format).
-
-
-
-