/* Options: Date: 2024-12-22 13:47:16 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetUserOrganizations.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/user/organizations") public class GetUserOrganizations : IReturn, IGet, Codable { public typealias Return = GetUserOrganizationsResponse required public init(){} } public class GetUserOrganizationsResponse : Codable { public var members:[OrganizationMember]? public var memberInvites:[OrganizationMemberInvite]? public var subscriptions:[OrganizationSubscription]? required public init(){} } public class OrganizationMember : Codable { public var id:Int? public var organizationId:Int? public var userId:Int? public var userName:String? public var isOwner:Bool? public var isModerator:Bool? public var denyAll:Bool? public var denyPosts:Bool? public var denyComments:Bool? public var notes:String? required public init(){} } public class OrganizationMemberInvite : Codable { public var id:Int? public var organizationId:Int? public var userId:Int? public var userName:String? public var dismissed:Date? required public init(){} } public class OrganizationSubscription : Codable { public var id:Int? public var organizationId:Int? public var userId:Int? public var userName:String? public var postTypes:[String]? public var frequencyDays:Int? public var lastSyncedId:Int? public var lastSynced:Date? public var created:Date? required public init(){} }