/* Options: Date: 2025-07-18 00:30:51 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://smsgw.intele.no/pushsms/rest //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: RestSmsRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") public class RestSmsRequest : IReturn, Codable { public typealias Return = RestSmsResponse /** * API Username. Usually your customer id */ // @DataMember(Name="Username") // @ApiMember(DataType="string", Description="API Username. Usually your customer id", IsRequired=true, Name="Username", ParameterType="form") // @StringLength(128) public var Username:String? /** * API Password */ // @DataMember(Name="Password") // @ApiMember(DataType="string", Description="API Password", IsRequired=true, Name="Password", ParameterType="form") // @StringLength(128) public var Password:String? /** * Collection of messages to send */ // @DataMember(Name="Messages") // @ApiMember(Description="Collection of messages to send", IsRequired=true, Name="Messages", ParameterType="form") public var Messages:[RestSmsMessageReq] = [] required public init(){} } // @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") public class RestSmsResponse : Codable { /** * 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") // @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 var ProcessResult:Bool? /** * Description of any error occured, if ProcessResult equals false */ // @DataMember(Name="ProcessResultDescription") // @ApiMember(DataType="string", Description="Description of any error occured, if ProcessResult equals false", Name="ProcessResultDescription", ParameterType="form") // @StringLength(2048) public var ProcessResultDescription:String? /** * Collection of messages sent or failed */ // @DataMember(Name="Messages") // @ApiMember(Description="Collection of messages sent or failed", Name="Description", ParameterType="form") public var Messages:[RestSmsMessageResp] = [] required public init(){} }