Пример #1
0
        public bool HasEditorError()
        {
            var eventsMapping = PresenterUtil.GetAllPresetnerEvents();

            if (!eventsMapping.ContainsKey(_url))
            {
                return(true);
            }

            if (_eventParameterBinders.Any(b => b == null))
            {
                return(true);
            }

            return(BinderUtil.IsUnityEventHasError(_beforeReceiveData) ||
                   BinderUtil.IsUnityEventHasError(_afterReceiveData));
        }
Пример #2
0
        public bool HasEditorError()
        {
            var actionMapping = PresenterUtil.GetAllPresenterAction();

            if (!actionMapping.ContainsKey(_url))
            {
                return(true);
            }

            if (_toSendDataBinders.Any(b => b == null) ||
                _responseDataBinder.Any(b => b == null))
            {
                return(true);
            }

            return(BinderUtil.IsUnityEventHasError(_beforeReceiveData) ||
                   BinderUtil.IsUnityEventHasError(_afterReceiveData));
        }