public void rank_hand_Process(int seqid, TProtocol iprot, TProtocol oprot) { rank_hand_args args = new rank_hand_args(); args.Read(iprot); iprot.ReadMessageEnd(); rank_hand_result result = new rank_hand_result(); result.Success = iface_.rank_hand(args.Cards); oprot.WriteMessageBegin(new TMessage("rank_hand", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public API.HandDescriptor recv_rank_hand() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } rank_hand_result result = new rank_hand_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "rank_hand failed: unknown result"); }