/* Options: Date: 2024-11-21 11:59:48 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ResourceTypeAvailableResourcesQuery.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @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") open class ResourceTypeAvailableResourcesQuery : 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") var CompanyId:UUID? = null /** * Enter the id for the booking. */ @ApiMember(Description="Enter the id for the booking.", IsRequired=true, ParameterType="path") var Id:Int? = null /** * Enter the id for a resourcetype. */ @ApiMember(Description="Enter the id for a resourcetype.", IsRequired=true) var ResourceTypeId:Int? = null companion object { private val responseType = ResourceTypeAvailableResourcesQueryResponse::class.java } override fun getResponseType(): Any? = ResourceTypeAvailableResourcesQuery.responseType } open class ResourceTypeAvailableResourcesQueryResponse { /** * The resourcetype id */ @ApiMember(Description="The resourcetype id") var Id:Int? = null /** * The available resources */ @ApiMember(Description="The available resources") var Resources:ArrayList = ArrayList() } open interface ICompany { var CompanyId:UUID? } open class AvailableResourceResponse { /** * The resource id */ @ApiMember(Description="The resource id") var Id:Int? = null /** * The resource name */ @ApiMember(Description="The resource name") var Name:String? = null /** * The resource description */ @ApiMember(Description="The resource description") var Description:String? = 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.") var Color:String? = null /** * The image url of the resource */ @ApiMember(Description="The image url of the resource") var ImageUrl:Uri? = null }