/* Options: Date: 2024-12-22 12:04:44 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: GetOrganization.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/orgs/{Id}", "GET") public class GetOrganization : IReturn, IGet, Codable { public typealias Return = GetOrganizationResponse public var id:Int? required public init(){} } public class GetOrganizationResponse : Codable { public var cache:Int? public var id:Int? public var slug:String? public var organization:Organization? public var labels:[OrganizationLabel]? public var categories:[Category]? public var owners:[OrganizationMember]? public var moderators:[OrganizationMember]? public var membersCount:Int? public var responseStatus:ResponseStatus? required public init(){} } public class Organization : Codable { public var id:Int? public var name:String? public var slug:String? public var Description:String? public var descriptionHtml:String? public var color:String? public var textColor:String? public var linkColor:String? public var backgroundColor:String? public var backgroundUrl:String? public var logoUrl:String? public var heroUrl:String? public var lang:String? public var defaultPostType:String? public var defaultSubscriptionPostTypes:[String]? public var postTypes:[String]? public var moderatorPostTypes:[String]? public var deletePostsWithReportCount:Int? public var disableInvites:Bool? public var upVotes:Int? public var downVotes:Int? public var views:Int? public var favorites:Int? public var subscribers:Int? public var commentsCount:Int? public var postsCount:Int? public var score:Int? public var rank:Int? public var refId:Int? public var refSource:String? public var hidden:Date? public var hiddenBy:String? public var locked:Date? public var lockedBy:String? public var deleted:Date? public var deletedBy:String? public var created:Date? public var createdBy:String? public var modified:Date? public var modifiedBy:String? required public init(){} } public class OrganizationLabel : Codable { public var slug:String? public var organizationId:Int? public var Description:String? public var color:String? required public init(){} } public class Category : Codable { public var id:Int? public var organizationId:Int? public var name:String? public var slug:String? public var Description:String? public var color:String? public var technologyIds:[Int]? public var commentsCount:Int? public var postsCount:Int? public var score:Int? public var rank:Int? 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(){} }