Esempio n. 1
0
        private void SetWebDownloadErrorState(WebServicesDownloadErrorCode downloadErrorCode)
        {
            if (RetryText)
            {
                switch (downloadErrorCode)
                {
                case WebServicesDownloadErrorCode.NoNetworkConnection:
                    RetryText.text = Localize.GetLocalizedString("Loading.NoNetworkError", "An internet connection is required to launch this app. Please connect to the internet and try again.");
                    break;

                case WebServicesDownloadErrorCode.ParseError:
                    RetryText.text = Localize.GetLocalizedString("Loading.ParseError", "There was a problem processing data from the Motive server.");
                    break;

                case WebServicesDownloadErrorCode.ServiceCallFailure:
                    RetryText.text = Localize.GetLocalizedString("Loading.ServiceCallError", "There was a problem connecting to the Motive server. Please try again.");
                    break;

                case WebServicesDownloadErrorCode.AuthenticationFailure:
                    RetryText.text = Localize.GetLocalizedString("Loading.AuthenticationFailure", "Failed to authenticate with the Motive server. Please try again.");
                    break;

                case WebServicesDownloadErrorCode.APIQuotaExceeded:
                    RetryText.text = Localize.GetLocalizedString("Loading.APIQuotaExceeded", "Your API quota has been exceeded. Please try again.");
                    break;
                }
            }

            ObjectHelper.SetObjectActive(RetryPane, true);
        }
Esempio n. 2
0
        void SetDownloadError(WebServicesDownloadErrorCode errorCode)
        {
            DownloadErrorCode = errorCode;

            SetDownloadState(WebServicesDownloadState.Error);
        }