@apillon/sdk
Version:
▶◀ Apillon SDK for NodeJS ▶◀
38 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialHub = void 0;
const apillon_1 = require("../../lib/apillon");
class SocialHub extends apillon_1.ApillonModel {
constructor(uuid, data) {
super(uuid);
/**
* Hub ID on Subsocial chain.
* @example https://grillapp.net/12927
*/
this.hubId = null;
/**
* Hub status (1: draft - deploying to chain, 5: active, 100: error).
*/
this.status = null;
/**
* Name of the hub.
*/
this.name = null;
/**
* Short description about the hub.
*/
this.about = null;
/**
* Comma separated tags associated with the hub.
*/
this.tags = null;
/**
* Number of channels in the hub.
*/
this.numOfChannels = null;
this.API_PREFIX = `/social/hubs/${uuid}`;
this.populate(data);
}
}
exports.SocialHub = SocialHub;
//# sourceMappingURL=social-hub.js.map