/* Options: Date: 2024-12-03 18:15:01 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: ApiVersionCompabilityQuery.* //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 enum VersionIdentifier { BokaMeraiOS = 1, BokaMeraAdminiOS = 2, BokaMeraAndroid = 3, BokaMeraAdminAndroid = 4, } export class ApiVersionCompabilityQueryResponse { /** @description The latest version number */ public CurrentVersion: string; /** @description Your version number */ public YourVersion: string; /** @description Any compatible error message */ public Message: string; /** @description If your version is compatible with the current version */ public Compatible: boolean; /** @description If the changes are blocking for use and you need to upgrade to later version */ public BlockingChanges: boolean; public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/version/compability", "GET") export class ApiVersionCompabilityQuery implements IReturn { /** @description The identifier for your application. */ // @ApiMember(Description="The identifier for your application.", IsRequired=true, ParameterType="query") public Identifier: VersionIdentifier; /** @description The version you are running and you want to check */ // @ApiMember(Description="The version you are running and you want to check", IsRequired=true, ParameterType="query") public Version: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ApiVersionCompabilityQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new ApiVersionCompabilityQueryResponse(); } }