airship-server
Version:
Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.
25 lines • 684 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class ContestNotificationSubscription {
constructor(groupId, userId) {
this._groupId = groupId;
this._userId = userId;
}
get groupId() {
return this._groupId;
}
get userId() {
return this._userId;
}
serialize() {
return {
userId: this._userId,
groupId: this._groupId
};
}
static deserialize(raw) {
return new ContestNotificationSubscription(raw['groupId'], raw['userId']);
}
}
exports.default = ContestNotificationSubscription;
//# sourceMappingURL=ContestNotificationSubscription.js.map