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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

{"email":"String","asunto":"String","body":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"estado":0}