public void showdown_Process(int seqid, TProtocol iprot, TProtocol oprot) { showdown_args args = new showdown_args(); args.Read(iprot); iprot.ReadMessageEnd(); showdown_result result = new showdown_result(); iface_.showdown(args.Competitor, args.Cards, args.Hand); oprot.WriteMessageBegin(new TMessage("showdown", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_showdown(API.Competitor competitor, List<API.Card> cards, API.HandDescriptor hand) #endif { oprot_.WriteMessageBegin(new TMessage("showdown", TMessageType.Call, seqid_)); showdown_args args = new showdown_args(); args.Competitor = competitor; args.Cards = cards; args.Hand = hand; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }