public void bet_request_Process(int seqid, TProtocol iprot, TProtocol oprot) { bet_request_args args = new bet_request_args(); args.Read(iprot); iprot.ReadMessageEnd(); bet_request_result result = new bet_request_result(); result.Success = iface_.bet_request(args.Pot, args.Limits); oprot.WriteMessageBegin(new TMessage("bet_request", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public long recv_bet_request() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } bet_request_result result = new bet_request_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "bet_request failed: unknown result"); }