All Verbs | /Utilidades/ListaEjecucionEmpresa |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GeneralRS implements IConvertible
{
/**
* Id del código de respuesta 1: Correcto, -1: Error
*/
// @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
int? Codigo;
/**
* Mensaje que se envía al ejecutar el servicio
*/
// @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
String? Mensaje;
GeneralRS({this.Codigo,this.Mensaje});
GeneralRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Codigo = json['Codigo'];
Mensaje = json['Mensaje'];
return this;
}
Map<String, dynamic> toJson() => {
'Codigo': Codigo,
'Mensaje': Mensaje
};
getTypeName() => "GeneralRS";
TypeContext? context = _ctx;
}
class EstadoEjecucion implements IConvertible
{
double? CodigoEjecucion;
String? AliasFuncion;
String? Descripcion;
String? Usuario;
DateTime? FechaHoraIni;
DateTime? FechaHoraFin;
DateTime? FechaHoraAct;
int? TotalRegistros;
int? CantProcesados;
String? Response;
String? Estado;
String? UsuarioCancela;
String? MotivoCancela;
EstadoEjecucion({this.CodigoEjecucion,this.AliasFuncion,this.Descripcion,this.Usuario,this.FechaHoraIni,this.FechaHoraFin,this.FechaHoraAct,this.TotalRegistros,this.CantProcesados,this.Response,this.Estado,this.UsuarioCancela,this.MotivoCancela});
EstadoEjecucion.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CodigoEjecucion = JsonConverters.toDouble(json['CodigoEjecucion']);
AliasFuncion = json['AliasFuncion'];
Descripcion = json['Descripcion'];
Usuario = json['Usuario'];
FechaHoraIni = JsonConverters.fromJson(json['FechaHoraIni'],'DateTime',context!);
FechaHoraFin = JsonConverters.fromJson(json['FechaHoraFin'],'DateTime',context!);
FechaHoraAct = JsonConverters.fromJson(json['FechaHoraAct'],'DateTime',context!);
TotalRegistros = json['TotalRegistros'];
CantProcesados = json['CantProcesados'];
Response = json['Response'];
Estado = json['Estado'];
UsuarioCancela = json['UsuarioCancela'];
MotivoCancela = json['MotivoCancela'];
return this;
}
Map<String, dynamic> toJson() => {
'CodigoEjecucion': CodigoEjecucion,
'AliasFuncion': AliasFuncion,
'Descripcion': Descripcion,
'Usuario': Usuario,
'FechaHoraIni': JsonConverters.toJson(FechaHoraIni,'DateTime',context!),
'FechaHoraFin': JsonConverters.toJson(FechaHoraFin,'DateTime',context!),
'FechaHoraAct': JsonConverters.toJson(FechaHoraAct,'DateTime',context!),
'TotalRegistros': TotalRegistros,
'CantProcesados': CantProcesados,
'Response': Response,
'Estado': Estado,
'UsuarioCancela': UsuarioCancela,
'MotivoCancela': MotivoCancela
};
getTypeName() => "EstadoEjecucion";
TypeContext? context = _ctx;
}
class EmpresaEjecucion implements IConvertible
{
double? IdEmpresa;
String? Nombre;
List<EstadoEjecucion>? ListaProcesos;
EmpresaEjecucion({this.IdEmpresa,this.Nombre,this.ListaProcesos});
EmpresaEjecucion.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IdEmpresa = JsonConverters.toDouble(json['IdEmpresa']);
Nombre = json['Nombre'];
ListaProcesos = JsonConverters.fromJson(json['ListaProcesos'],'List<EstadoEjecucion>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'IdEmpresa': IdEmpresa,
'Nombre': Nombre,
'ListaProcesos': JsonConverters.toJson(ListaProcesos,'List<EstadoEjecucion>',context!)
};
getTypeName() => "EmpresaEjecucion";
TypeContext? context = _ctx;
}
class ListaProcesosEmpresaRS extends GeneralRS implements IConvertible
{
List<EmpresaEjecucion>? EmpresasEjecucion;
/**
* Id del código de respuesta 1: Correcto, -1: Error
*/
// @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
int? Codigo;
/**
* Mensaje que se envía al ejecutar el servicio
*/
// @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
String? Mensaje;
ListaProcesosEmpresaRS({this.EmpresasEjecucion,this.Codigo,this.Mensaje});
ListaProcesosEmpresaRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
EmpresasEjecucion = JsonConverters.fromJson(json['EmpresasEjecucion'],'List<EmpresaEjecucion>',context!);
Codigo = json['Codigo'];
Mensaje = json['Mensaje'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'EmpresasEjecucion': JsonConverters.toJson(EmpresasEjecucion,'List<EmpresaEjecucion>',context!),
'Codigo': Codigo,
'Mensaje': Mensaje
});
getTypeName() => "ListaProcesosEmpresaRS";
TypeContext? context = _ctx;
}
class ListaProcesosEmpresaRQ implements IConvertible
{
double? CodigoEmpresa;
String? Estado;
DateTime? FechaInicio;
DateTime? FechaFin;
ListaProcesosEmpresaRQ({this.CodigoEmpresa,this.Estado,this.FechaInicio,this.FechaFin});
ListaProcesosEmpresaRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CodigoEmpresa = JsonConverters.toDouble(json['CodigoEmpresa']);
Estado = json['Estado'];
FechaInicio = JsonConverters.fromJson(json['FechaInicio'],'DateTime',context!);
FechaFin = JsonConverters.fromJson(json['FechaFin'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'CodigoEmpresa': CodigoEmpresa,
'Estado': Estado,
'FechaInicio': JsonConverters.toJson(FechaInicio,'DateTime',context!),
'FechaFin': JsonConverters.toJson(FechaFin,'DateTime',context!)
};
getTypeName() => "ListaProcesosEmpresaRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GeneralRS': TypeInfo(TypeOf.Class, create:() => GeneralRS()),
'EstadoEjecucion': TypeInfo(TypeOf.Class, create:() => EstadoEjecucion()),
'EmpresaEjecucion': TypeInfo(TypeOf.Class, create:() => EmpresaEjecucion()),
'List<EstadoEjecucion>': TypeInfo(TypeOf.Class, create:() => <EstadoEjecucion>[]),
'ListaProcesosEmpresaRS': TypeInfo(TypeOf.Class, create:() => ListaProcesosEmpresaRS()),
'List<EmpresaEjecucion>': TypeInfo(TypeOf.Class, create:() => <EmpresaEjecucion>[]),
'ListaProcesosEmpresaRQ': TypeInfo(TypeOf.Class, create:() => ListaProcesosEmpresaRQ()),
});
Dart ListaProcesosEmpresaRQ 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/ListaEjecucionEmpresa HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ListaProcesosEmpresaRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<CodigoEmpresa>0</CodigoEmpresa>
<Estado>String</Estado>
<FechaFin>0001-01-01T00:00:00</FechaFin>
<FechaInicio>0001-01-01T00:00:00</FechaInicio>
</ListaProcesosEmpresaRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ListaProcesosEmpresaRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <Codigo>0</Codigo> <Mensaje>String</Mensaje> <EmpresasEjecucion> <EmpresaEjecucion> <IdEmpresa>0</IdEmpresa> <ListaProcesos> <EstadoEjecucion> <AliasFuncion>String</AliasFuncion> <CantProcesados>0</CantProcesados> <CodigoEjecucion>0</CodigoEjecucion> <Descripcion>String</Descripcion> <Estado>String</Estado> <FechaHoraAct>0001-01-01T00:00:00</FechaHoraAct> <FechaHoraFin>0001-01-01T00:00:00</FechaHoraFin> <FechaHoraIni>0001-01-01T00:00:00</FechaHoraIni> <MotivoCancela>String</MotivoCancela> <Response>String</Response> <TotalRegistros>0</TotalRegistros> <Usuario>String</Usuario> <UsuarioCancela>String</UsuarioCancela> </EstadoEjecucion> </ListaProcesos> <Nombre>String</Nombre> </EmpresaEjecucion> </EmpresasEjecucion> </ListaProcesosEmpresaRS>