@golemio/pid
Version:
Golemio PID Module
90 lines • 3.64 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DepartureBoardsResponseDTO = exports.DepartureBoardsQueryDTO = void 0;
const pid_1 = require("..");
const decorators_1 = require("../../shared/decorators");
class DepartureBoardsQueryDTO {
constructor() {
this.aswIds = [];
this.cisIds = [];
this.ids = [];
this.names = [];
this.skip = [];
this.limit = 20;
this.minutesAfter = 180;
this.minutesBefore = 0;
this.includeMetroTrains = false;
this.airCondition = true;
this.mode = pid_1.DepartureMode.DEPARTURES;
this.order = pid_1.DepartureOrder.REAL;
this.filter = pid_1.DepartureFilter.NONE;
this.offset = 0;
}
}
exports.DepartureBoardsQueryDTO = DepartureBoardsQueryDTO;
__decorate([
(0, decorators_1.TransformArray)(),
__metadata("design:type", Array)
], DepartureBoardsQueryDTO.prototype, "aswIds", void 0);
__decorate([
(0, decorators_1.TransformArray)(),
__metadata("design:type", Array)
], DepartureBoardsQueryDTO.prototype, "cisIds", void 0);
__decorate([
(0, decorators_1.TransformArray)(),
__metadata("design:type", Array)
], DepartureBoardsQueryDTO.prototype, "ids", void 0);
__decorate([
(0, decorators_1.TransformArray)(),
__metadata("design:type", Array)
], DepartureBoardsQueryDTO.prototype, "names", void 0);
__decorate([
(0, decorators_1.TransformArray)(),
__metadata("design:type", Array)
], DepartureBoardsQueryDTO.prototype, "skip", void 0);
__decorate([
(0, decorators_1.TransformInteger)(),
__metadata("design:type", Number)
], DepartureBoardsQueryDTO.prototype, "limit", void 0);
__decorate([
(0, decorators_1.TransformInteger)(),
__metadata("design:type", Number)
], DepartureBoardsQueryDTO.prototype, "minutesAfter", void 0);
__decorate([
(0, decorators_1.TransformInteger)(),
__metadata("design:type", Number)
], DepartureBoardsQueryDTO.prototype, "minutesBefore", void 0);
__decorate([
(0, decorators_1.TransformBoolean)(),
__metadata("design:type", Boolean)
], DepartureBoardsQueryDTO.prototype, "includeMetroTrains", void 0);
__decorate([
(0, decorators_1.TransformBoolean)(),
__metadata("design:type", Boolean)
], DepartureBoardsQueryDTO.prototype, "airCondition", void 0);
__decorate([
(0, decorators_1.TransformInteger)(),
__metadata("design:type", Number)
], DepartureBoardsQueryDTO.prototype, "offset", void 0);
__decorate([
(0, decorators_1.TransformInteger)(),
__metadata("design:type", Number)
], DepartureBoardsQueryDTO.prototype, "total", void 0);
class DepartureBoardsResponseDTO {
constructor() {
this.stops = [];
this.departures = [];
this.infotexts = [];
}
}
exports.DepartureBoardsResponseDTO = DepartureBoardsResponseDTO;
//# sourceMappingURL=DepartureBoardsDTO.js.map