public void recv_buyMustbuyProduct() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } buyMustbuyProduct_result result = new buyMustbuyProduct_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }
public void buyMustbuyProduct_Process(int seqid, TProtocol iprot, TProtocol oprot) { buyMustbuyProduct_args args = new buyMustbuyProduct_args(); args.Read(iprot); iprot.ReadMessageEnd(); buyMustbuyProduct_result result = new buyMustbuyProduct_result(); try { iface_.buyMustbuyProduct(args.ReceiverMid, args.ProductId, args.MessageTemplate, args.Language, args.Country, args.PackageId, args.SerialNumber); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("buyMustbuyProduct", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }