/* Options: Date: 2025-12-06 05:26:36 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: CalendarRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/v1/Calendar/{CalendarId}", "GET,OPTIONS") // @Route("/v1/Calendar/{CalendarId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/CrewMember/Availability/{ContactId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}/CalendarEventId/{CalendarEventId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}/CalendarEventId/{CalendarEventId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/ExpandAll/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Location/{LocationId}", "GET,OPTIONS") // @Route("/v1/Calendar/Agent/{AgentId}", "GET,OPTIONS") public class CalendarRequest : Codable { public var calendarId:String? public var calendarEventId:Int? public var calendarType:CalendarType? public var calendarFormat:CalendarFormat? public var contactId:Int? public var startDate:Date? public var endDate:Date? public var projectId:Int? public var locationId:String? public var agentId:Int? public var expandRecurringEvents:Bool? public var expandAll:Bool? required public init(){} } public enum CalendarType : String, Codable { case All case Pera case Google } public enum CalendarFormat : String, Codable { case Standard case ICS }