UNPKG

@topoos/push

Version:

SDK para el servicio de envío de notificaciones mediante Firebase Cloud Messaging, desarrollado en NodeJS.

106 lines (84 loc) 3.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); 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 ErrorErrorErrors model module. * @module org.wso2.client.model.PUSH/ErrorErrorErrors * @version 1.0.0 */ var ErrorErrorErrors = /*#__PURE__*/function () { /** * Constructs a new <code>ErrorErrorErrors</code>. * @alias module:org.wso2.client.model.PUSH/ErrorErrorErrors */ function ErrorErrorErrors() { _classCallCheck(this, ErrorErrorErrors); ErrorErrorErrors.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(ErrorErrorErrors, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>ErrorErrorErrors</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/ErrorErrorErrors} obj Optional instance to populate. * @return {module:org.wso2.client.model.PUSH/ErrorErrorErrors} The populated <code>ErrorErrorErrors</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new ErrorErrorErrors(); if (data.hasOwnProperty('domain')) { obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); } if (data.hasOwnProperty('reason')) { obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String'); } if (data.hasOwnProperty('message')) { obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); } if (data.hasOwnProperty('extendedHelp')) { obj['extendedHelp'] = _ApiClient["default"].convertToType(data['extendedHelp'], 'String'); } } return obj; } }]); return ErrorErrorErrors; }(); /** * modulo que emite el error * @member {String} domain */ ErrorErrorErrors.prototype['domain'] = undefined; /** * codigo identificador unico para el error * @member {String} reason */ ErrorErrorErrors.prototype['reason'] = undefined; /** * mensaje explicativo del error para el usuario * @member {String} message */ ErrorErrorErrors.prototype['message'] = undefined; /** * URL donde puede localizarse información adicional para la resolucion * @member {String} extendedHelp */ ErrorErrorErrors.prototype['extendedHelp'] = undefined; var _default = ErrorErrorErrors; exports["default"] = _default;