@kfijolek/boardgamegeekclient
Version:
Javascript client to interact with BoardGameGeek public XML API
71 lines • 3.02 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;
};
import { JsonAlias, JsonClassType, JsonDeserialize, JsonManagedReference, JsonProperty } from "jackson-js";
import { BggPlaysPlayItemDto } from "./BggPlaysPlayItemDto";
import { BggPlaysPlayPlayerDto } from "./BggPlaysPlayPlayerDto";
export class BggPlaysPlayDto {
}
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_id"] })
], BggPlaysPlayDto.prototype, "id", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonAlias({ values: ["@_date"] })
], BggPlaysPlayDto.prototype, "date", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_quantity"] })
], BggPlaysPlayDto.prototype, "quantity", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_length"] })
], BggPlaysPlayDto.prototype, "length", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_incomplete"] })
], BggPlaysPlayDto.prototype, "incomplete", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_nowinstats"] })
], BggPlaysPlayDto.prototype, "nowinstats", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonAlias({ values: ["@_location"] })
], BggPlaysPlayDto.prototype, "location", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [BggPlaysPlayItemDto] }),
JsonAlias({ values: ["item"] }),
JsonManagedReference(),
JsonDeserialize({
//eslint-disable-next-line @typescript-eslint/no-explicit-any
using: (items) => items[0]
})
], BggPlaysPlayDto.prototype, "item", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] })
], BggPlaysPlayDto.prototype, "comments", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Array, [BggPlaysPlayPlayerDto]] }),
JsonAlias({ values: ["players"] }),
JsonManagedReference(),
JsonDeserialize({
//eslint-disable-next-line @typescript-eslint/no-explicit-any
using: (items) => { var _a; return (_a = items[0]) === null || _a === void 0 ? void 0 : _a.player; }
})
], BggPlaysPlayDto.prototype, "players", void 0);
//# sourceMappingURL=BggPlaySubDtos.js.map