/* Options: Date: 2025-07-18 00:32:08 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://smsgw.intele.no/pushsms/rest //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: RestSmsRequest.* //ExcludeTypes: //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.*; public class dtos { @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") public static class RestSmsRequest implements 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) public Object username = null; /** * API Password */ @DataMember(Name="Password") @SerializedName("Password") @ApiMember(DataType="string", Description="API Password", IsRequired=true, Name="Password", ParameterType="form") @StringLength(MaximumLength=128) public String password = null; /** * Collection of messages to send */ @DataMember(Name="Messages") @SerializedName("Messages") @ApiMember(Description="Collection of messages to send", IsRequired=true, Name="Messages", ParameterType="form") public ArrayList messages = new ArrayList(); public Object getUsername() { return username; } public RestSmsRequest setUsername(Object value) { this.username = value; return this; } public String getPassword() { return password; } public RestSmsRequest setPassword(String value) { this.password = value; return this; } public ArrayList getMessages() { return messages; } public RestSmsRequest setMessages(ArrayList value) { this.messages = value; return this; } private static Object responseType = RestSmsResponse.class; public Object getResponseType() { return responseType; } } @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") public static 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") public Boolean processResult = 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) public String processResultDescription = null; /** * Collection of messages sent or failed */ @DataMember(Name="Messages") @SerializedName("Messages") @ApiMember(Description="Collection of messages sent or failed", Name="Description", ParameterType="form") public ArrayList messages = new ArrayList(); public Boolean isProcessResult() { return processResult; } public RestSmsResponse setProcessResult(Boolean value) { this.processResult = value; return this; } public String getProcessResultDescription() { return processResultDescription; } public RestSmsResponse setProcessResultDescription(String value) { this.processResultDescription = value; return this; } public ArrayList getMessages() { return messages; } public RestSmsResponse setMessages(ArrayList value) { this.messages = value; return this; } } }