Example #1
0
        public void send_NewMessage(PlayerUnreadCount playerUnreadCount)
        {
            oprot_.WriteMessageBegin(new TMessage("NewMessage", TMessageType.Call, seqid_));
            NewMessage_args args = new NewMessage_args();

            args.PlayerUnreadCount = playerUnreadCount;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
Example #2
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();
        }