All Verbs | /Utilidades/Consultas/Listados/EjecutarMultiempresa |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class EjecutaQueryRS implements IConvertible
{
List<Map<String,dynamic>>? DatosConsulta;
int? TotalRegistros;
int? TotalGrupos;
List<dynamic>? SummaryList;
EjecutaQueryRS({this.DatosConsulta,this.TotalRegistros,this.TotalGrupos,this.SummaryList});
EjecutaQueryRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
DatosConsulta = JsonConverters.fromJson(json['DatosConsulta'],'List<Map<String,dynamic>>',context!);
TotalRegistros = json['TotalRegistros'];
TotalGrupos = json['TotalGrupos'];
SummaryList = JsonConverters.fromJson(json['SummaryList'],'List<dynamic>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'DatosConsulta': JsonConverters.toJson(DatosConsulta,'List<Map<String,dynamic>>',context!),
'TotalRegistros': TotalRegistros,
'TotalGrupos': TotalGrupos,
'SummaryList': JsonConverters.toJson(SummaryList,'List<dynamic>',context!)
};
getTypeName() => "EjecutaQueryRS";
TypeContext? context = _ctx;
}
enum Lenguajes
{
ES,
PT,
EN,
}
class EjecutaQueryMxEmpFileRQ implements IConvertible
{
int? IDVista;
Map<String,dynamic?>? Parametros;
Lenguajes? Lenguaje;
List<double>? ListaEmpresas;
EjecutaQueryMxEmpFileRQ({this.IDVista,this.Parametros,this.Lenguaje,this.ListaEmpresas});
EjecutaQueryMxEmpFileRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IDVista = json['IDVista'];
Parametros = JsonConverters.fromJson(json['Parametros'],'Map<String,dynamic?>',context!);
Lenguaje = JsonConverters.fromJson(json['Lenguaje'],'Lenguajes',context!);
ListaEmpresas = JsonConverters.fromJson(json['ListaEmpresas'],'List<double>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'IDVista': IDVista,
'Parametros': JsonConverters.toJson(Parametros,'Map<String,dynamic?>',context!),
'Lenguaje': JsonConverters.toJson(Lenguaje,'Lenguajes',context!),
'ListaEmpresas': JsonConverters.toJson(ListaEmpresas,'List<double>',context!)
};
getTypeName() => "EjecutaQueryMxEmpFileRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws.jimsnwa.com', types: <String, TypeInfo> {
'EjecutaQueryRS': TypeInfo(TypeOf.Class, create:() => EjecutaQueryRS()),
'List<Map<String,dynamic>>': TypeInfo(TypeOf.Class, create:() => <Map<String,dynamic>>[]),
'Map<String,dynamic>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic>()),
'List<dynamic>': TypeInfo(TypeOf.Class, create:() => <dynamic>[]),
'Lenguajes': TypeInfo(TypeOf.Enum, enumValues:Lenguajes.values),
'EjecutaQueryMxEmpFileRQ': TypeInfo(TypeOf.Class, create:() => EjecutaQueryMxEmpFileRQ()),
'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
});
Dart EjecutaQueryMxEmpFileRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Consultas/Listados/EjecutarMultiempresa HTTP/1.1
Host: ws.jimsnwa.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EjecutaQueryMxEmpFileRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<IDVista>0</IDVista>
<Lenguaje>ES</Lenguaje>
<ListaEmpresas xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:decimal>0</d2p1:decimal>
</ListaEmpresas>
<Parametros xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</Parametros>
</EjecutaQueryMxEmpFileRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EjecutaQueryRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <DatosConsulta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:ArrayOfKeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>String</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </d2p1:ArrayOfKeyValueOfstringanyType> </DatosConsulta> <SummaryList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType /> </SummaryList> <TotalGrupos>0</TotalGrupos> <TotalRegistros>0</TotalRegistros> </EjecutaQueryRS>