/* Options: Date: 2024-11-21 12:07:12 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ApiVersionCompabilityQuery.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/version/compability", Verbs="GET") public static class ApiVersionCompabilityQuery implements IReturn { /** * The identifier for your application. */ @ApiMember(Description="The identifier for your application.", IsRequired=true, ParameterType="query") public VersionIdentifier Identifier = null; /** * 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 String Version = null; public VersionIdentifier getIdentifier() { return Identifier; } public ApiVersionCompabilityQuery setIdentifier(VersionIdentifier value) { this.Identifier = value; return this; } public String getVersion() { return Version; } public ApiVersionCompabilityQuery setVersion(String value) { this.Version = value; return this; } private static Object responseType = ApiVersionCompabilityQueryResponse.class; public Object getResponseType() { return responseType; } } public static class ApiVersionCompabilityQueryResponse { /** * The latest version number */ public String CurrentVersion = null; /** * Your version number */ public String YourVersion = null; /** * Any compatible error message */ public String Message = null; /** * If your version is compatible with the current version */ public Boolean Compatible = null; /** * If the changes are blocking for use and you need to upgrade to later version */ public Boolean BlockingChanges = null; public ResponseStatus ResponseStatus = null; public String getCurrentVersion() { return CurrentVersion; } public ApiVersionCompabilityQueryResponse setCurrentVersion(String value) { this.CurrentVersion = value; return this; } public String getYourVersion() { return YourVersion; } public ApiVersionCompabilityQueryResponse setYourVersion(String value) { this.YourVersion = value; return this; } public String getMessage() { return Message; } public ApiVersionCompabilityQueryResponse setMessage(String value) { this.Message = value; return this; } public Boolean isCompatible() { return Compatible; } public ApiVersionCompabilityQueryResponse setCompatible(Boolean value) { this.Compatible = value; return this; } public Boolean isBlockingChanges() { return BlockingChanges; } public ApiVersionCompabilityQueryResponse setBlockingChanges(Boolean value) { this.BlockingChanges = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public ApiVersionCompabilityQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static enum VersionIdentifier { BokaMeraiOS(1), BokaMeraAdminiOS(2), BokaMeraAndroid(3), BokaMeraAdminAndroid(4); private final int value; VersionIdentifier(final int intValue) { value = intValue; } public int getValue() { return value; } } }