/* Options: Date: 2024-11-21 12:08:58 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ApiVersionQuery.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ApiVersionQueryResponse { /** @description Timestamp when this API was built */ public BuildTime: string; /** @description The revision id from which the API was built */ public Sha: string; /** @description Full version information regarding the current running assemblies of the api */ public InformationalVersion: string; /** @description The semantic version number of the current running api version, see www.semver.org for more information */ public SemVer: string; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/version", "GET") export class ApiVersionQuery implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ApiVersionQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new ApiVersionQueryResponse(); } }