@blockv/sdk
Version:
Allows web apps to display and interact with vatoms.
31 lines (24 loc) • 642 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* Represents a raw data object, potentially without any data, which is monitored by a region.
*/
class DataObject {
constructor(type, id, data) {
/** Object type */
this.type = type;
/** Object identifier */
this.id = id;
/** Object payload, if any */
this.data = data;
/**
* Cached object. Plugins map this raw data object to their own types, this is used to cache
* those types if there have been no changes.
*/
this.cached = null;
}
}
exports.default = DataObject;