@kfijolek/boardgamegeekclient
Version:
TypeScript client to interact with BoardGameGeek public XML API
86 lines • 3.32 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 { BggLinkDto } from ".";
export class BggThingVersionDto {
}
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonAlias({ values: ["@_type"] })
], BggThingVersionDto.prototype, "type", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonAlias({ values: ["@_id"] })
], BggThingVersionDto.prototype, "id", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonAlias({ values: ["thumbnail"] })
], BggThingVersionDto.prototype, "thumbnail", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonAlias({ values: ["image"] })
], BggThingVersionDto.prototype, "image", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Array, [BggLinkDto]] }),
JsonManagedReference(),
JsonAlias({ values: ["link"] })
], BggThingVersionDto.prototype, "links", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "name", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "yearpublished", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [String] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "productcode", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "width", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "length", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "depth", void 0);
__decorate([
JsonProperty(),
JsonClassType({ type: () => [Number] }),
JsonDeserialize({
using: (value) => value.map(item => item['@_value'])[0]
})
], BggThingVersionDto.prototype, "weight", void 0);
//# sourceMappingURL=BggThingVersionDto.js.map