public static ProcardResponse Get(IBaseProcardRequestClass request) { if (request == null) { return(new ProcardResponse(new ConsultaRequest(), "9999#Internal service Error 9999")); } return(new ProcardResponse(request, SynchronousSocketClient.WriteAndGetReply(request.ProcardMessage()))); }
public ProcardResponse Test() { //return ProcardSocketClient.Get(new ConsultaRequest() { document = "1499526" }.ProcardMessage()); //Consulta Test //return new ProcardResponse("0"); AltaRequest consulta = new AltaRequest() { identity_document = "180108" }; ////1#75#0#2906#P1#004913675#0#100000#0#7803554#0#9999999#20161230113523#0#00#0#0#0#0#107#107#GXTARJETAM#PROCARDDES#0 return(new ProcardResponse(consulta, SynchronousSocketClient.WriteAndGetReply("3#90#108#1499526#233#XL#5894332330000048#233000040#D#20170126#112233#GXTARJETAM#PROCARDDES"))); //return new ProcardResponse(consulta, "91# #0"); }