FrameAppWS

<back to all web services

ShareReportRQ

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

class ShareFileRS implements IConvertible
{
    bool? isShared;
    String? error;

    ShareFileRS({this.isShared,this.error});
    ShareFileRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class ShareReportRQ implements IConvertible
{
    double? reporte;
    String? usuario;
    double? sistema;
    double? empresa;

    ShareReportRQ({this.reporte,this.usuario,this.sistema,this.empresa});
    ShareReportRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        reporte = JsonConverters.toDouble(json['reporte']);
        usuario = json['usuario'];
        sistema = JsonConverters.toDouble(json['sistema']);
        empresa = JsonConverters.toDouble(json['empresa']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'reporte': reporte,
        'usuario': usuario,
        'sistema': sistema,
        'empresa': empresa
    };

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

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

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

<ShareReportRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <empresa>0</empresa>
  <reporte>0</reporte>
  <sistema>0</sistema>
  <usuario>String</usuario>
</ShareReportRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

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