@topoos/push
Version:
SDK para el servicio de envío de notificaciones mediante Firebase Cloud Messaging, desarrollado en NodeJS.
88 lines (69 loc) • 3.69 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _SubscribeToTopicResponseDataFailures = _interopRequireDefault(require("./SubscribeToTopicResponseDataFailures"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
/**
* The PostNotificationResultDataItems model module.
* @module org.wso2.client.model.PUSH/PostNotificationResultDataItems
* @version 1.0.0
*/
var PostNotificationResultDataItems = /*#__PURE__*/function () {
/**
* Constructs a new <code>PostNotificationResultDataItems</code>.
* @alias module:org.wso2.client.model.PUSH/PostNotificationResultDataItems
*/
function PostNotificationResultDataItems() {
_classCallCheck(this, PostNotificationResultDataItems);
PostNotificationResultDataItems.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
_createClass(PostNotificationResultDataItems, null, [{
key: "initialize",
value: function initialize(obj) {}
/**
* Constructs a <code>PostNotificationResultDataItems</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:org.wso2.client.model.PUSH/PostNotificationResultDataItems} obj Optional instance to populate.
* @return {module:org.wso2.client.model.PUSH/PostNotificationResultDataItems} The populated <code>PostNotificationResultDataItems</code> instance.
*/
}, {
key: "constructFromObject",
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new PostNotificationResultDataItems();
if (data.hasOwnProperty('successCount')) {
obj['successCount'] = _ApiClient["default"].convertToType(data['successCount'], 'Number');
}
if (data.hasOwnProperty('failures')) {
obj['failures'] = _ApiClient["default"].convertToType(data['failures'], [_SubscribeToTopicResponseDataFailures["default"]]);
}
}
return obj;
}
}]);
return PostNotificationResultDataItems;
}();
/**
* El número de mensajes que fueron corréctamente procesados y enviados
* @member {Number} successCount
*/
PostNotificationResultDataItems.prototype['successCount'] = undefined;
/**
* Array de errores durante el envío de la notificación
* @member {Array.<module:org.wso2.client.model.PUSH/SubscribeToTopicResponseDataFailures>} failures
*/
PostNotificationResultDataItems.prototype['failures'] = undefined;
var _default = PostNotificationResultDataItems;
exports["default"] = _default;