UNPKG

trade360-nodejs-sdk

Version:
43 lines 2.23 kB
"use strict"; 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.GetSubscriptionsRequestDto = void 0; const class_transformer_1 = require("class-transformer"); /** * GetSubscriptionsRequestDto class is responsible for sending * a request to the subscription API to get fixtures * subscriptions. It contains the properties for sending a * request to the subscription API to get fixtures subscriptions. * @param sportIds The sport IDs to get subscriptions for * @param locationIds The location IDs to get subscriptions for * @param leagueIds The league IDs to get subscriptions for * @returns A new instance of the GetSubscriptionsRequestDto class * with the provided sport IDs, location IDs, and league IDs. */ class GetSubscriptionsRequestDto { constructor(data) { Object.assign(this, data); } } exports.GetSubscriptionsRequestDto = GetSubscriptionsRequestDto; __decorate([ (0, class_transformer_1.Expose)({ name: 'SportIds' }), __metadata("design:type", Array) ], GetSubscriptionsRequestDto.prototype, "sportIds", void 0); __decorate([ (0, class_transformer_1.Expose)({ name: 'LocationIds' }), __metadata("design:type", Array) ], GetSubscriptionsRequestDto.prototype, "locationIds", void 0); __decorate([ (0, class_transformer_1.Expose)({ name: 'LeagueIds' }), __metadata("design:type", Array) ], GetSubscriptionsRequestDto.prototype, "leagueIds", void 0); //# sourceMappingURL=get-subscriptions.request.dto.js.map