/* Options: Date: 2025-07-17 23:53:13 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://smsgw.intele.no/pushsms/rest //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RestSmsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") class RestSmsResponse implements IConvertible { /** * 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") bool? ProcessResult; /** * 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) String? ProcessResultDescription; /** * Collection of messages sent or failed */ // @DataMember(Name="Messages") // @ApiMember(Description="Collection of messages sent or failed", Name="Description", ParameterType="form") List? Messages = []; RestSmsResponse({this.ProcessResult,this.ProcessResultDescription,this.Messages}); RestSmsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProcessResult = json['processResult']; ProcessResultDescription = json['processResultDescription']; Messages = JsonConverters.fromJson(json['messages'],'List',context!); return this; } Map toJson() => { 'processResult': ProcessResult, 'processResultDescription': ProcessResultDescription, 'messages': JsonConverters.toJson(Messages,'List',context!) }; getTypeName() => "RestSmsResponse"; TypeContext? context = _ctx; } // @DataContract(Namespace="http://schemas.datacontract.org/2004/07/PushSmsLib.Dto") class RestSmsRequest implements IReturn, IConvertible, IPost { /** * 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) dynamic? Username; /** * API Password */ // @DataMember(Name="Password") // @ApiMember(DataType="string", Description="API Password", IsRequired=true, Name="Password", ParameterType="form") // @StringLength(128) String? Password; /** * Collection of messages to send */ // @DataMember(Name="Messages") // @ApiMember(Description="Collection of messages to send", IsRequired=true, Name="Messages", ParameterType="form") List? Messages = []; RestSmsRequest({this.Username,this.Password,this.Messages}); RestSmsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Username = JsonConverters.fromJson(json['username'],'dynamic',context!); Password = json['password']; Messages = JsonConverters.fromJson(json['messages'],'List',context!); return this; } Map toJson() => { 'username': JsonConverters.toJson(Username,'dynamic',context!), 'password': Password, 'messages': JsonConverters.toJson(Messages,'List',context!) }; createResponse() => RestSmsResponse(); getResponseTypeName() => "RestSmsResponse"; getTypeName() => "RestSmsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'smsgw.intele.no', types: { 'RestSmsResponse': TypeInfo(TypeOf.Class, create:() => RestSmsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RestSmsMessageResp': TypeInfo(TypeOf.Class, create:() => RestSmsMessageResp()), 'RestSmsRequest': TypeInfo(TypeOf.Class, create:() => RestSmsRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RestSmsMessageReq': TypeInfo(TypeOf.Class, create:() => RestSmsMessageReq()), });