/* Options: Date: 2024-12-03 19:00:46 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ApiVersionCompabilityQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum VersionIdentifier { BokaMeraiOS, BokaMeraAdminiOS, BokaMeraAndroid, BokaMeraAdminAndroid, } class ApiVersionCompabilityQueryResponse implements IConvertible { /** * The latest version number */ String? CurrentVersion; /** * Your version number */ String? YourVersion; /** * Any compatible error message */ String? Message; /** * If your version is compatible with the current version */ bool? Compatible; /** * If the changes are blocking for use and you need to upgrade to later version */ bool? BlockingChanges; ResponseStatus? ResponseStatus; ApiVersionCompabilityQueryResponse({this.CurrentVersion,this.YourVersion,this.Message,this.Compatible,this.BlockingChanges,this.ResponseStatus}); ApiVersionCompabilityQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CurrentVersion = json['CurrentVersion']; YourVersion = json['YourVersion']; Message = json['Message']; Compatible = json['Compatible']; BlockingChanges = json['BlockingChanges']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'CurrentVersion': CurrentVersion, 'YourVersion': YourVersion, 'Message': Message, 'Compatible': Compatible, 'BlockingChanges': BlockingChanges, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ApiVersionCompabilityQueryResponse"; TypeContext? context = _ctx; } // @Route("/version/compability", "GET") class ApiVersionCompabilityQuery implements IReturn, IConvertible, IGet { /** * The identifier for your application. */ // @ApiMember(Description="The identifier for your application.", IsRequired=true, ParameterType="query") VersionIdentifier? Identifier; /** * 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") String? Version; ApiVersionCompabilityQuery({this.Identifier,this.Version}); ApiVersionCompabilityQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Identifier = JsonConverters.fromJson(json['Identifier'],'VersionIdentifier',context!); Version = json['Version']; return this; } Map toJson() => { 'Identifier': JsonConverters.toJson(Identifier,'VersionIdentifier',context!), 'Version': Version }; createResponse() => ApiVersionCompabilityQueryResponse(); getResponseTypeName() => "ApiVersionCompabilityQueryResponse"; getTypeName() => "ApiVersionCompabilityQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'VersionIdentifier': TypeInfo(TypeOf.Enum, enumValues:VersionIdentifier.values), 'ApiVersionCompabilityQueryResponse': TypeInfo(TypeOf.Class, create:() => ApiVersionCompabilityQueryResponse()), 'ApiVersionCompabilityQuery': TypeInfo(TypeOf.Class, create:() => ApiVersionCompabilityQuery()), });