예제 #1
0
        public void send_NewTribeForumPost(int tribeId, int unreadCount)
        {
            oprot_.WriteMessageBegin(new TMessage("NewTribeForumPost", TMessageType.Call, seqid_));
            NewTribeForumPost_args args = new NewTribeForumPost_args();

            args.TribeId     = tribeId;
            args.UnreadCount = unreadCount;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
예제 #2
0
        public void NewTribeForumPost_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            NewTribeForumPost_args args = new NewTribeForumPost_args();

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

            iface_.NewTribeForumPost(args.TribeId, args.UnreadCount);
            oprot.WriteMessageBegin(new TMessage("NewTribeForumPost", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }