/* Options: Date: 2024-11-21 04:22:11 SwiftVersion: 5.0 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ResourceItemCompletionRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}", "GET") // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}", "GET") // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}/{RetrievalAmount}", "GET") public class ResourceItemCompletionRequest : IReturn, Codable { public typealias Return = ResourceItemCompletionResponse public var memberId:Int? public var startDate:Date? public var endDate:Date? public var resourceType:String? public var retrievalAmount:Int? required public init(){} } public class ResourceItemCompletionResponse : Codable { public var memberId:Int? public var startDate:Date? public var endDate:Date? public var totalCompletions:Int? public var retrievalAmount:Int? public var resourceCompletions:[ResourceItemCompletion] = [] required public init(){} } public class ResourceItemCompletion : Codable { public var resourceCompletionId:Int? public var resourceProgressId:Int? public var progressOnCompletion:Int? public var resourceId:String? public var resourceName:String? public var resourceType:String? public var completionDate:Date? required public init(){} }