Example #1
0
            public void GetGameInfo_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                GetGameInfo_args args = new GetGameInfo_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                GetGameInfo_result result = new GetGameInfo_result();

                result.Success = iface_.GetGameInfo(args.GameId);
                oprot.WriteMessageBegin(new TMessage("GetGameInfo", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Example #2
0
            public GameInfo recv_GetGameInfo()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                GetGameInfo_result result = new GetGameInfo_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetGameInfo failed: unknown result");
            }