Ejemplo n.º 1
0
        public void NewMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            NewMessage_args args = new NewMessage_args();

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

            iface_.NewMessage(args.PlayerUnreadCount);
            oprot.WriteMessageBegin(new TMessage("NewMessage", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Ejemplo n.º 2
0
        public void recv_NewMessage()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            return;
        }