/* Options: Date: 2024-12-22 12:08:50 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: SessionInfo.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/my-session") // @ValidateRequest(Validator="IsAuthenticated") public class SessionInfo : IReturn, IGet, Codable { public typealias Return = SessionInfoResponse required public init(){} } public class SessionInfoResponse : Codable { public var created:Date? public var id:String? public var referrerUrl:String? public var userAuthId:String? public var userAuthName:String? public var userName:String? public var displayName:String? public var firstName:String? public var lastName:String? public var email:String? public var createdAt:Date? public var lastModified:Date? public var roles:[String]? public var permissions:[String]? public var isAuthenticated:Bool? public var authProvider:String? public var profileUrl:String? public var githubProfileUrl:String? public var twitterProfileUrl:String? public var accessToken:String? public var avatarUrl:String? public var techStacks:[TechnologyStack]? public var favoriteTechStacks:[TechnologyStack]? public var favoriteTechnologies:[Technology]? public var userActivity:UserActivity? public var members:[OrganizationMember]? public var memberInvites:[OrganizationMemberInvite]? public var subscriptions:[OrganizationSubscription]? public var responseStatus:ResponseStatus? required public init(){} } public class Technology : TechnologyBase { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public enum TechnologyTier : String, Codable { case ProgrammingLanguage case Client case Http case Server case Data case SoftwareInfrastructure case OperatingSystem case HardwareInfrastructure case ThirdPartyServices } public class TechnologyStack : TechnologyStackBase { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } 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(){} } public class UserActivity : Codable { public var id:Int? public var userName:String? public var karma:Int? public var technologyCount:Int? public var techStacksCount:Int? public var postsCount:Int? public var postUpVotes:Int? public var postDownVotes:Int? public var commentUpVotes:Int? public var commentDownVotes:Int? public var postCommentsCount:Int? public var pinnedCommentCount:Int? public var postReportCount:Int? public var postCommentReportCount:Int? public var created:Date? public var modified:Date? required public init(){} } public class TechnologyBase : Codable { public var id:Int? public var name:String? public var vendorName:String? public var vendorUrl:String? public var productUrl:String? public var logoUrl:String? public var Description:String? public var created:Date? public var createdBy:String? public var lastModified:Date? public var lastModifiedBy:String? public var ownerId:String? public var slug:String? public var logoApproved:Bool? public var isLocked:Bool? public var tier:TechnologyTier? public var lastStatusUpdate:Date? public var organizationId:Int? public var commentsPostId:Int? public var viewCount:Int? public var favCount:Int? required public init(){} } public class TechnologyStackBase : Codable { public var id:Int? public var name:String? public var vendorName:String? public var Description:String? public var appUrl:String? public var screenshotUrl:String? public var created:Date? public var createdBy:String? public var lastModified:Date? public var lastModifiedBy:String? public var isLocked:Bool? public var ownerId:String? public var slug:String? // @StringLength(Int32.max) public var details:String? // @StringLength(Int32.max) public var detailsHtml:String? public var lastStatusUpdate:Date? public var organizationId:Int? public var commentsPostId:Int? public var viewCount:Int? public var favCount:Int? required public init(){} }