All Verbs | /utilidades/executeDBFunction |
---|
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 ExecuteDBFunctionRS extends GeneralRS implements IConvertible
{
dynamic? Respuesta;
double? IDEjecucion;
String? URLArchivo;
String? TipoRespuesta;
bool? Background;
int? TiempoRespuestaBD;
int? TiempoRespuestaTotal;
/**
* 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;
ExecuteDBFunctionRS({this.Respuesta,this.IDEjecucion,this.URLArchivo,this.TipoRespuesta,this.Background,this.TiempoRespuestaBD,this.TiempoRespuestaTotal,this.Codigo,this.Mensaje});
ExecuteDBFunctionRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Respuesta = JsonConverters.fromJson(json['Respuesta'],'dynamic',context!);
IDEjecucion = JsonConverters.toDouble(json['IDEjecucion']);
URLArchivo = json['URLArchivo'];
TipoRespuesta = json['TipoRespuesta'];
Background = json['Background'];
TiempoRespuestaBD = json['TiempoRespuestaBD'];
TiempoRespuestaTotal = json['TiempoRespuestaTotal'];
Codigo = json['Codigo'];
Mensaje = json['Mensaje'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Respuesta': JsonConverters.toJson(Respuesta,'dynamic',context!),
'IDEjecucion': IDEjecucion,
'URLArchivo': URLArchivo,
'TipoRespuesta': TipoRespuesta,
'Background': Background,
'TiempoRespuestaBD': TiempoRespuestaBD,
'TiempoRespuestaTotal': TiempoRespuestaTotal,
'Codigo': Codigo,
'Mensaje': Mensaje
});
getTypeName() => "ExecuteDBFunctionRS";
TypeContext? context = _ctx;
}
class ExecuteDBFunctionRQ implements IConvertible
{
String? NombreServicio;
Map<String,dynamic?>? Parametros;
ExecuteDBFunctionRQ({this.NombreServicio,this.Parametros});
ExecuteDBFunctionRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
NombreServicio = json['NombreServicio'];
Parametros = JsonConverters.fromJson(json['Parametros'],'Map<String,dynamic?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'NombreServicio': NombreServicio,
'Parametros': JsonConverters.toJson(Parametros,'Map<String,dynamic?>',context!)
};
getTypeName() => "ExecuteDBFunctionRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GeneralRS': TypeInfo(TypeOf.Class, create:() => GeneralRS()),
'ExecuteDBFunctionRS': TypeInfo(TypeOf.Class, create:() => ExecuteDBFunctionRS()),
'ExecuteDBFunctionRQ': TypeInfo(TypeOf.Class, create:() => ExecuteDBFunctionRQ()),
'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /utilidades/executeDBFunction HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"NombreServicio":"String","Parametros":{"String":{}}}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Respuesta":{},"IDEjecucion":0,"URLArchivo":"String","TipoRespuesta":"String","Background":false,"TiempoRespuestaBD":0,"TiempoRespuestaTotal":0,"Codigo":0,"Mensaje":"String"}