示例#1
0
            public void isNewMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                isNewMessage_args args = new isNewMessage_args();

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

                result.Success = iface_.isNewMessage(args.Id);
                oprot.WriteMessageBegin(new TMessage("isNewMessage", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
示例#2
0
            public bool recv_isNewMessage()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

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