UNPKG

@iotile/iotile-cloud

Version:

A typescript library for interfacing with the IOTile Cloud API

26 lines 733 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Invitation = /** @class */ (function () { function Invitation(data) { if (data === void 0) { data = {}; } this.email = ""; if ('email' in data) { this.email = data.email; } if ('sent_on' in data) { this.sentOn = new Date(data.sent_on); } if ('sent_by' in data) { this.sentBy = data.sent_by; } } Invitation.prototype.postPayload = function () { var payload = { email: this.email }; return payload; }; return Invitation; }()); exports.Invitation = Invitation; //# sourceMappingURL=invitation.js.map