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(); }
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(); }