/* Options: Date: 2024-12-03 18:12:40 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: ResourceTypeAvailableResourcesQuery.* //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="/bookings/{Id}/resources/available", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) @ValidateRequest(Validator="IsAuthenticated") public static class ResourceTypeAvailableResourcesQuery implements IReturn, ICompany { /** * Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown */ @ApiMember(Description="Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", ParameterType="query") public UUID CompanyId = null; /** * Enter the id for the booking. */ @ApiMember(Description="Enter the id for the booking.", IsRequired=true, ParameterType="path") public Integer Id = null; /** * Enter the id for a resourcetype. */ @ApiMember(Description="Enter the id for a resourcetype.", IsRequired=true) public Integer ResourceTypeId = null; public UUID getCompanyId() { return CompanyId; } public ResourceTypeAvailableResourcesQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public ResourceTypeAvailableResourcesQuery setId(Integer value) { this.Id = value; return this; } public Integer getResourceTypeId() { return ResourceTypeId; } public ResourceTypeAvailableResourcesQuery setResourceTypeId(Integer value) { this.ResourceTypeId = value; return this; } private static Object responseType = ResourceTypeAvailableResourcesQueryResponse.class; public Object getResponseType() { return responseType; } } public static class ResourceTypeAvailableResourcesQueryResponse { /** * The resourcetype id */ @ApiMember(Description="The resourcetype id") public Integer Id = null; /** * The available resources */ @ApiMember(Description="The available resources") public ArrayList Resources = null; public Integer getId() { return Id; } public ResourceTypeAvailableResourcesQueryResponse setId(Integer value) { this.Id = value; return this; } public ArrayList getResources() { return Resources; } public ResourceTypeAvailableResourcesQueryResponse setResources(ArrayList value) { this.Resources = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static class AvailableResourceResponse { /** * The resource id */ @ApiMember(Description="The resource id") public Integer Id = null; /** * The resource name */ @ApiMember(Description="The resource name") public String Name = null; /** * The resource description */ @ApiMember(Description="The resource description") public String Description = null; /** * The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue. */ @ApiMember(Description="The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue.") public String Color = null; /** * The image url of the resource */ @ApiMember(Description="The image url of the resource") public Uri ImageUrl = null; public Integer getId() { return Id; } public AvailableResourceResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public AvailableResourceResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public AvailableResourceResponse setDescription(String value) { this.Description = value; return this; } public String getColor() { return Color; } public AvailableResourceResponse setColor(String value) { this.Color = value; return this; } public Uri getImageUrl() { return ImageUrl; } public AvailableResourceResponse setImageUrl(Uri value) { this.ImageUrl = value; return this; } } }