/* Options: Date: 2025-04-04 16:34:20 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FindMessage.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route("/api/Query/Message") @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Message") open class FindMessage : QueryDb(), IReturn> { companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = FindMessage.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) var Offset:Int? = null @DataMember(Order=2) var Total:Int? = null @DataMember(Order=3) var Results:ArrayList = ArrayList() @DataMember(Order=4) var Meta:HashMap = HashMap() @DataMember(Order=5) var ResponseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } open class MessageInstance { var MessageId:Int? = null var DueDate:Date? = null var SentDate:Date? = null var Processed:Boolean? = null var Failures:Int? = null var InstanceId:Int? = null var MessageSid:String? = null var MessageTemplate:MessageTemplateInstance? = null @References(MessageTemplateInstance.class) var MessageTemplateId:Int? = null var OpenedDate:Date? = null var BouncedDate:Date? = null var DeliveredDate:Date? = null var UnsubscribedDate:Date? = null var SpamReportDate:Date? = null var User:UserInstance? = null @References(UserInstance.class) var UserId:Int? = null var InstanceType:Int? = null } open class MessageTemplateInstance { var MessageTemplateId:Int? = null var Name:String? = null var Subject:String? = null var Body:String? = null var ReportId:Int? = null var TemplateType:Int? = null var Created:Date? = null var CreatedBy:Int? = null var Modified:Date? = null var ModifiedBy:Int? = null var Deleted:Date? = null var DeletedBy:Int? = null var EventType:Int? = null var ContentType:Int? = null var Hidden:Boolean? = null var ParentMessageTemplateId:Int? = null var InclusionTags:String? = null var ExclusionTags:String? = null } open class UserInstance { var UserId:Int? = null var UserName:String? = null var Name:String? = null var Email:String? = null var MobilePhone:String? = null var Enabled:Boolean? = null var LastLogin:Date? = null var Created:Date? = null var Training:Boolean? = null var Deleted:Boolean? = null var CoursesCompleted:Int? = null var DisplayHomeNotification:Boolean? = null var TwoFactorEnabled:Boolean? = null var EmailConfirmed:Boolean? = null var MobilePhoneConfirmed:Boolean? = null var Notifications:Boolean? = null var ChangePassword:Date? = null var Activated:Date? = null } @DataContract open class QueryBase { @DataMember(Order=1) var Skip:Int? = null @DataMember(Order=2) var Take:Int? = null @DataMember(Order=3) var OrderBy:String? = null @DataMember(Order=4) var OrderByDesc:String? = null @DataMember(Order=5) var Include:String? = null @DataMember(Order=6) var Fields:String? = null @DataMember(Order=7) var Meta:HashMap = HashMap() }