/* Options: Date: 2025-04-04 16:23:17 SwiftVersion: 5.0 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: FindMessage.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/api/Query/Message") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Message") public class FindMessage : QueryDb, IReturn { public typealias Return = QueryResponse 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 MessageInstance : Codable { public var messageId:Int? public var dueDate:Date? public var sentDate:Date? public var processed:Bool? public var failures:Int? public var instanceId:Int? public var messageSid:String? public var messageTemplate:MessageTemplateInstance? // @References(typeof(MessageTemplateInstance)) public var messageTemplateId:Int? public var openedDate:Date? public var bouncedDate:Date? public var deliveredDate:Date? public var unsubscribedDate:Date? public var spamReportDate:Date? public var user:UserInstance? // @References(typeof(UserInstance)) public var userId:Int? public var instanceType:Int? required public init(){} } public class MessageTemplateInstance : Codable { public var messageTemplateId:Int? public var name:String? public var subject:String? public var body:String? public var reportId:Int? public var templateType:Int? public var created:Date? public var createdBy:Int? public var modified:Date? public var modifiedBy:Int? public var deleted:Date? public var deletedBy:Int? public var eventType:Int? public var contentType:Int? public var hidden:Bool? public var parentMessageTemplateId:Int? public var inclusionTags:String? public var exclusionTags:String? required public init(){} } public class UserInstance : Codable { public var userId:Int? public var userName:String? public var name:String? public var email:String? public var mobilePhone:String? public var enabled:Bool? public var lastLogin:Date? public var created:Date? public var training:Bool? public var deleted:Bool? public var coursesCompleted:Int? public var displayHomeNotification:Bool? public var twoFactorEnabled:Bool? public var emailConfirmed:Bool? public var mobilePhoneConfirmed:Bool? public var notifications:Bool? public var changePassword:Date? public var activated:Date? required public init(){} }