Beispiel #1
0
        public void registerToGameSession_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            registerToGameSession_args args = new registerToGameSession_args();

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

            result.Success = iface_.registerToGameSession(args.ClientId);
            oprot.WriteMessageBegin(new TMessage("registerToGameSession", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
        public long recv_registerToGameSession()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

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