/* Options: Date: 2025-12-10 20:19:05 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://galaxymobile.api.dev.86degrees.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostMessage.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/galaxy/sendmessage", Verbs="POST") open class PostMessage : IReturn, ILogRequest, IHasApiKey { /** * The type of message being sent. */ @ApiMember(DataType="MessageType", Description="The type of message being sent.", IsRequired=true) var Type:MessageType? = null /** * The subject of the message */ @ApiMember(DataType="string", Description="The subject of the message", IsRequired=true) var Subject:String? = null /** * The content of the message */ @ApiMember(DataType="string", Description="The content of the message", IsRequired=true) var Content:String? = null /** * The recipients who will be receiving the message */ @ApiMember(Description="The recipients who will be receiving the message", IsRequired=true) var Recipients:ArrayList = ArrayList() /** * The API Key required for authentication */ @ApiMember(Description="The API Key required for authentication", IsRequired=true) var ApiKey:String? = null /** * If set, the message will be displayed in the user's inbox in the app. Otherwise will just be a push notification. */ @ApiMember(Description="If set, the message will be displayed in the user's inbox in the app. Otherwise will just be a push notification.", IsRequired=true) var ShowInInbox:Boolean? = null companion object { private val responseType = PostMessageResponse::class.java } override fun getResponseType(): Any? = PostMessage.responseType } open class PostMessageResponse : ApiServiceResponse() { } open interface IHasApiKey { var ApiKey:String? } open interface ILogRequest { } @Flags() enum class MessageType(val value:Int) { @SerializedName("1") Info(1), @SerializedName("2") Marketing(2), @SerializedName("3") Policy(3), @SerializedName("4") Announcement(4), @SerializedName("5") General(5), @SerializedName("6") Claim(6), } open class UserDetails { var IdNumber:String? = null var GalaxyCompanyId:Int? = null } open class ApiServiceResponse : IServiceResponse { var Description:String? = null var Heading:String? = null var WasSuccessful:Boolean? = null var ModelState:Object? = null }