/* Options: Date: 2024-11-21 12:04:07 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: ResourceTypeAvailableResourcesQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class AvailableResourceResponse implements IConvertible { /** * The resource id */ // @ApiMember(Description="The resource id") int? Id; /** * The resource name */ // @ApiMember(Description="The resource name") String? Name; /** * The resource description */ // @ApiMember(Description="The resource description") String? Description; /** * 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.") String? Color; /** * The image url of the resource */ // @ApiMember(Description="The image url of the resource") Uri? ImageUrl; AvailableResourceResponse({this.Id,this.Name,this.Description,this.Color,this.ImageUrl}); AvailableResourceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; Color = json['Color']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'Color': Color, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!) }; getTypeName() => "AvailableResourceResponse"; TypeContext? context = _ctx; } class ResourceTypeAvailableResourcesQueryResponse implements IConvertible { /** * The resourcetype id */ // @ApiMember(Description="The resourcetype id") int? Id; /** * The available resources */ // @ApiMember(Description="The available resources") List? Resources; ResourceTypeAvailableResourcesQueryResponse({this.Id,this.Resources}); ResourceTypeAvailableResourcesQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Resources = JsonConverters.fromJson(json['Resources'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Resources': JsonConverters.toJson(Resources,'List',context!) }; getTypeName() => "ResourceTypeAvailableResourcesQueryResponse"; TypeContext? context = _ctx; } // @Route("/bookings/{Id}/resources/available", "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") class ResourceTypeAvailableResourcesQuery implements IReturn, ICompany, IConvertible, IGet { /** * 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") String? CompanyId; /** * Enter the id for the booking. */ // @ApiMember(Description="Enter the id for the booking.", IsRequired=true, ParameterType="path") int? Id; /** * Enter the id for a resourcetype. */ // @ApiMember(Description="Enter the id for a resourcetype.", IsRequired=true) int? ResourceTypeId; ResourceTypeAvailableResourcesQuery({this.CompanyId,this.Id,this.ResourceTypeId}); ResourceTypeAvailableResourcesQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; ResourceTypeId = json['ResourceTypeId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'ResourceTypeId': ResourceTypeId }; createResponse() => ResourceTypeAvailableResourcesQueryResponse(); getResponseTypeName() => "ResourceTypeAvailableResourcesQueryResponse"; getTypeName() => "ResourceTypeAvailableResourcesQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'AvailableResourceResponse': TypeInfo(TypeOf.Class, create:() => AvailableResourceResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'ResourceTypeAvailableResourcesQueryResponse': TypeInfo(TypeOf.Class, create:() => ResourceTypeAvailableResourcesQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceTypeAvailableResourcesQuery': TypeInfo(TypeOf.Class, create:() => ResourceTypeAvailableResourcesQuery()), });