FrameAppWS

<back to all web services

NotificarEmailRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Notificar
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class NotificarEmailRS implements IConvertible
{
    int? estado;

    NotificarEmailRS({this.estado});
    NotificarEmailRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        estado = json['estado'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'estado': estado
    };

    getTypeName() => "NotificarEmailRS";
    TypeContext? context = _ctx;
}

class NotificarEmailRQ implements IConvertible
{
    String? email;
    String? asunto;
    String? body;

    NotificarEmailRQ({this.email,this.asunto,this.body});
    NotificarEmailRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        email = json['email'];
        asunto = json['asunto'];
        body = json['body'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'email': email,
        'asunto': asunto,
        'body': body
    };

    getTypeName() => "NotificarEmailRQ";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
    'NotificarEmailRS': TypeInfo(TypeOf.Class, create:() => NotificarEmailRS()),
    'NotificarEmailRQ': TypeInfo(TypeOf.Class, create:() => NotificarEmailRQ()),
});

Dart NotificarEmailRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Utilidades/Notificar HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<NotificarEmailRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <asunto>String</asunto>
  <body>String</body>
  <email>String</email>
</NotificarEmailRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<NotificarEmailRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <estado>0</estado>
</NotificarEmailRS>