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 void send_bet_request(long pot, API.BetLimits limits) #endif { oprot_.WriteMessageBegin(new TMessage("bet_request", TMessageType.Call, seqid_)); bet_request_args args = new bet_request_args(); args.Pot = pot; args.Limits = limits; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }