@abcpros/bitcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Wallets
33 lines • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PushNotificationSub = void 0;
var PushNotificationSub = (function () {
function PushNotificationSub() {
}
PushNotificationSub.create = function (opts) {
opts = opts || {};
var x = new PushNotificationSub();
x.version = '1.0.0';
x.createdOn = Math.floor(Date.now() / 1000);
x.copayerId = opts.copayerId;
x.token = opts.token;
x.packageName = opts.packageName;
x.platform = opts.platform;
x.walletId = opts.walletId;
return x;
};
PushNotificationSub.fromObj = function (obj) {
var x = new PushNotificationSub();
x.version = obj.version;
x.createdOn = obj.createdOn;
x.copayerId = obj.copayerId;
x.token = obj.token;
x.packageName = obj.packageName;
x.platform = obj.platform;
x.walletId = obj.walletId;
return x;
};
return PushNotificationSub;
}());
exports.PushNotificationSub = PushNotificationSub;
//# sourceMappingURL=pushnotificationsub.js.map