FrameAppWS

<back to all web services

InsertReportRQ

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

class InsertReportRS implements IConvertible
{
    bool? isInsertado;
    String? Error;

    InsertReportRS({this.isInsertado,this.Error});
    InsertReportRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class InsertReportRQ implements IConvertible
{
    String? usua_login;
    double? carp_carp;
    double? rept_rept;
    String? rept_nombre;
    int? rept_tipo;
    DateTime? rept_fecmodi;
    DateTime? rept_fecelimi;
    String? rept_version;
    int? rept_tamano;
    double? blob_blob;
    double? vist_vist;

    InsertReportRQ({this.usua_login,this.carp_carp,this.rept_rept,this.rept_nombre,this.rept_tipo,this.rept_fecmodi,this.rept_fecelimi,this.rept_version,this.rept_tamano,this.blob_blob,this.vist_vist});
    InsertReportRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        usua_login = json['usua_login'];
        carp_carp = JsonConverters.toDouble(json['carp_carp']);
        rept_rept = JsonConverters.toDouble(json['rept_rept']);
        rept_nombre = json['rept_nombre'];
        rept_tipo = json['rept_tipo'];
        rept_fecmodi = JsonConverters.fromJson(json['rept_fecmodi'],'DateTime',context!);
        rept_fecelimi = JsonConverters.fromJson(json['rept_fecelimi'],'DateTime',context!);
        rept_version = json['rept_version'];
        rept_tamano = json['rept_tamano'];
        blob_blob = JsonConverters.toDouble(json['blob_blob']);
        vist_vist = JsonConverters.toDouble(json['vist_vist']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'usua_login': usua_login,
        'carp_carp': carp_carp,
        'rept_rept': rept_rept,
        'rept_nombre': rept_nombre,
        'rept_tipo': rept_tipo,
        'rept_fecmodi': JsonConverters.toJson(rept_fecmodi,'DateTime',context!),
        'rept_fecelimi': JsonConverters.toJson(rept_fecelimi,'DateTime',context!),
        'rept_version': rept_version,
        'rept_tamano': rept_tamano,
        'blob_blob': blob_blob,
        'vist_vist': vist_vist
    };

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

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

Dart InsertReportRQ 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 /restfiles/InsertReportRQ HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InsertReportRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <blob_blob>0</blob_blob>
  <carp_carp>0</carp_carp>
  <rept_fecelimi>0001-01-01T00:00:00</rept_fecelimi>
  <rept_fecmodi>0001-01-01T00:00:00</rept_fecmodi>
  <rept_nombre>String</rept_nombre>
  <rept_rept>0</rept_rept>
  <rept_tamano>0</rept_tamano>
  <rept_tipo>0</rept_tipo>
  <rept_version>String</rept_version>
  <usua_login>String</usua_login>
  <vist_vist>0</vist_vist>
</InsertReportRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InsertReportRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Error>String</Error>
  <isInsertado>false</isInsertado>
</InsertReportRS>