UNPKG

cecon-interfaces

Version:
29 lines (28 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MottuEventEntity = void 0; var event_delivery_man_entity_1 = require("./event-delivery-man.entity"); var event_requested_by_entity_1 = require("./event-requested-by.entity"); var MottuEventEntity = /** @class */ (function () { // #endregion Properties (7) // #region Constructors (1) function MottuEventEntity(data) { // #region Properties (7) this.createdAt = new Date(); this.deliveryMan = new event_delivery_man_entity_1.MottuEventDeliveryManEntity(); this.description = ''; this.id = 0; this.latitude = 0; this.longitude = 0; this.requestedBy = new event_requested_by_entity_1.MottuEventRequestedByEntity(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return MottuEventEntity; }()); exports.MottuEventEntity = MottuEventEntity;