public ProductList recv_getActivePurchases() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getActivePurchases_result result = new getActivePurchases_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getActivePurchases failed: unknown result"); }
public void getActivePurchases_Process(int seqid, TProtocol iprot, TProtocol oprot) { getActivePurchases_args args = new getActivePurchases_args(); args.Read(iprot); iprot.ReadMessageEnd(); getActivePurchases_result result = new getActivePurchases_result(); try { result.Success = iface_.getActivePurchases(args.Start, args.Size, args.Language, args.Country); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getActivePurchases", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }