Пример #1
0
        public void GetList_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            GetList_args args = new GetList_args();

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

            result.Success = iface_.GetList();
            oprot.WriteMessageBegin(new TMessage("GetList", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Пример #2
0
        public List <Customer> recv_GetList()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetList failed: unknown result");
        }
Пример #3
0
 public void GetList_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     GetList_args args = new GetList_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     GetList_result result = new GetList_result();
     result.Success = iface_.GetList();
     oprot.WriteMessageBegin(new TMessage("GetList", TMessageType.Reply, seqid)); 
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Пример #4
0
 public List<Customer> recv_GetList()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     GetList_result result = new GetList_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
         return result.Success;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetList failed: unknown result");
 }