Beispiel #1
0
        public void getPinIdList_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getPinIdList_args args = new getPinIdList_args();

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

            result.Success = iface_.getPinIdList();
            oprot.WriteMessageBegin(new TMessage("getPinIdList", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
        public THashSet <long> recv_getPinIdList()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

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