/* Options: Date: 2025-07-18 00:22:20 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://smsgw.intele.no/pushsms/rest //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RestSmsRequest.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") open class RestSmsRequest : IReturn { /** * API Username. Usually your customer id */ @DataMember(Name="Username") @SerializedName("Username") @ApiMember(DataType="string", Description="API Username. Usually your customer id", IsRequired=true, Name="Username", ParameterType="form") @StringLength(MaximumLength=128) open var username:Object? = null /** * API Password */ @DataMember(Name="Password") @SerializedName("Password") @ApiMember(DataType="string", Description="API Password", IsRequired=true, Name="Password", ParameterType="form") @StringLength(MaximumLength=128) open var password:String? = null /** * Collection of messages to send */ @DataMember(Name="Messages") @SerializedName("Messages") @ApiMember(Description="Collection of messages to send", IsRequired=true, Name="Messages", ParameterType="form") open var messages:ArrayList = ArrayList() companion object { private val responseType = RestSmsResponse::class.java } override fun getResponseType(): Any? = RestSmsRequest.responseType } @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") open class RestSmsResponse { /** * Overall status of processing the request. Each message will have it's own status. This value indicates if any other error occured or not */ @DataMember(Name="ProcessResult") @SerializedName("ProcessResult") @ApiMember(DataType="boolean", Description="Overall status of processing the request. Each message will have it's own status. This value indicates if any other error occured or not", IsRequired=true, Name="ProcessResult", ParameterType="form") open var processResult:Boolean? = null /** * Description of any error occured, if ProcessResult equals false */ @DataMember(Name="ProcessResultDescription") @SerializedName("ProcessResultDescription") @ApiMember(DataType="string", Description="Description of any error occured, if ProcessResult equals false", Name="ProcessResultDescription", ParameterType="form") @StringLength(MaximumLength=2048) open var processResultDescription:String? = null /** * Collection of messages sent or failed */ @DataMember(Name="Messages") @SerializedName("Messages") @ApiMember(Description="Collection of messages sent or failed", Name="Description", ParameterType="form") open var messages:ArrayList = ArrayList() }