UNPKG

bitcore-wallet-service

Version:
32 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PushNotificationSub = void 0; class PushNotificationSub { static create(opts) { opts = opts || {}; const x = new PushNotificationSub(); x.version = '1.0.0'; x.createdOn = Math.floor(Date.now() / 1000); x.copayerId = opts.copayerId; x.token = opts.token; x.externalUserId = opts.externalUserId; x.packageName = opts.packageName; x.platform = opts.platform; x.walletId = opts.walletId; return x; } static fromObj(obj) { const x = new PushNotificationSub(); x.version = obj.version; x.createdOn = obj.createdOn; x.copayerId = obj.copayerId; x.token = obj.token; x.externalUserId = obj.externalUserId; x.packageName = obj.packageName; x.platform = obj.platform; x.walletId = obj.walletId; return x; } } exports.PushNotificationSub = PushNotificationSub; //# sourceMappingURL=pushnotificationsub.js.map