/* Options: Date: 2024-11-21 12:05:44 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: AddResource.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/resourcetypes/{Id}/addresource", "POST") // @ValidateRequest(Validator="IsAuthenticated") public class AddResource : Codable { /** * The company id */ // @ApiMember(Description="The company id", IsRequired=true) public var companyId:String /** * The ResourceType id */ // @ApiMember(Description="The ResourceType id", IsRequired=true, ParameterType="path") public var id:Int /** * The resources to be included */ // @ApiMember(Description="The resources to be included") public var resources:[AddResourceTypeResource] = [] required public init(){} } public class AddResourceTypeResource : Codable { /** * The resource id */ // @ApiMember(Description="The resource id") public var id:Int /** * The priority of the resource. If no priority is set it will take random resource when booking a time. */ // @ApiMember(Description="The priority of the resource. If no priority is set it will take random resource when booking a time.") public var priority:Int required public init(){} }