Example #1
0
            public void recv_ShowInGameOverlay()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }
 public bool Process(TProtocol iprot, TProtocol oprot)
 {
     try
     {
         TMessage        msg = iprot.ReadMessageBegin();
         ProcessFunction fn;
         processMap_.TryGetValue(msg.Name, out fn);
         if (fn == null)
         {
             TProtocolUtil.Skip(iprot, TType.Struct);
             iprot.ReadMessageEnd();
             TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.UnknownMethod, "Invalid method name: '" + msg.Name + "'");
             oprot.WriteMessageBegin(new TMessage(msg.Name, TMessageType.Exception, msg.SeqID));
             x.Write(oprot);
             oprot.WriteMessageEnd();
             oprot.Transport.Flush();
             return(true);
         }
         fn(msg.SeqID, iprot, oprot);
     }
     catch (IOException)
     {
         return(false);
     }
     return(true);
 }
Example #3
0
        public string recv_execute()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            if (result.__isset.e)
            {
                throw result.E;
            }
            if (result.__isset.aze)
            {
                throw result.Aze;
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "execute failed: unknown result");
        }
Example #4
0
            public Feature recv_createFeature()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createFeature failed: unknown result");
            }
            public void recv_ExportModelToDDIFile()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.ValidationFailedException)
                {
                    throw result.ValidationFailedException;
                }
                return;
            }
Example #6
0
        public void recv_notifyLeaveGroup()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.e)
            {
                throw result.E;
            }
            return;
        }
Example #7
0
            public ResultCode recv_Log()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.Success.HasValue)
                {
                    return(result.Success.Value);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Log failed: unknown result");
            }
            public DTOSearchResult recv_SearchTaocheCar()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SearchTaocheCar failed: unknown result");
            }
Example #9
0
            public string recv_Transfer()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Transfer failed: unknown result");
            }
Example #10
0
            public bool recv_isStarted()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "isStarted failed: unknown result");
            }
Example #11
0
        public ExtensionStatus recv_ping()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "ping failed: unknown result");
        }
Example #12
0
            public UserInfo recv_GetUser()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.Success != null)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetUser failed: unknown result");
            }
            public int recv_testCase1()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testCase1 failed: unknown result");
            }
        public void recv_result()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.aze)
            {
                throw result.Aze;
            }
            return;
        }
Example #15
0
            public LoginResponse recv_Login()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Login failed: unknown result");
            }
Example #16
0
            public CPopulationFitness recv_calculateXorPopulationFitness()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "calculateXorPopulationFitness failed: unknown result");
            }
Example #17
0
        public List <Contact> recv_getContacts()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getContacts failed: unknown result");
        }
Example #18
0
            public void recv_beginServiceDelivery()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.Err != null)
                {
                    throw result.Err;
                }
                return;
            }
Example #19
0
            public ServiceVersion recv_GetVersion()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetVersion failed: unknown result");
            }
Example #20
0
        public byte[] recv_getFullImg()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            if (result.__isset.ex)
            {
                throw result.Ex;
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getFullImg failed: unknown result");
        }
Example #21
0
        public MessageOperations recv_fetchMessageOperations()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            if (result.__isset.e)
            {
                throw result.E;
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchMessageOperations failed: unknown result");
        }
Example #22
0
        public SpotPhoneNumberResponse recv_lookupByPhoneNumber()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            if (result.__isset.e)
            {
                throw result.E;
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "lookupByPhoneNumber failed: unknown result");
        }
Example #23
0
            public List <Dish> recv_GetTheMenue()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                if (result.__isset.error)
                {
                    throw result.Error;
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetTheMenue failed: unknown result");
            }
Example #24
0
            public bool recv_gateModeChange()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                if (result.__isset.e)
                {
                    throw result.E;
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "gateModeChange failed: unknown result");
            }
Example #25
0
            public void recv_HelloWorld()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }
Example #26
0
 public TrxnResult recv_Save()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   Save_result result = new Save_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Save failed: unknown result");
 }
Example #27
0
        public void recv_SendMessageFromUI()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            return;
        }
        private bool InOneWayRequest()
        {
            bool isOneWayMethod = false;

            // Create a temporary transport wrapping the output buffer, so that we can read the method name for this message
            using (TChannelBufferInputTransport requestReadTransport = new TChannelBufferInputTransport(_requestBufferTransport.OutputBuffer.Duplicate()))
            {
                using (TProtocol protocol = _channel.ProtocolFactory.GetOutputProtocolFactory().GetProtocol(requestReadTransport))
                {
                    TMessage message    = protocol.ReadMessageBegin();
                    String   methodName = message.Name;

                    isOneWayMethod = ClientClassHasReceiveHelperMethod(methodName);
                    return(isOneWayMethod);
                }
            }
        }
Example #29
0
            public Ruyi.SDK.Http.SubscribeReply recv_Subscribe()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Subscribe failed: unknown result");
            }
Example #30
0
            public Ruyi.SDK.StorageLayer.GetLocalPathResult recv_GetLocalPath()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

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