Exemple #1
0
 void CallHandler_onErrorEvent(WebserviceError errorResponse)
 {
     if (ErrorOccurred != null)
     {
         ErrorOccurred(errorResponse);
     }
 }
Exemple #2
0
        private bool ValidateData(WWW www)
        {
            string          responseData = www.text;
            WebserviceError error        = responseCreator.IsWebserviceError(responseData);

            if (error != null)
            {
                Debug.LogError("Error: " + error.Message);

                if (IsError != null)
                {
                    IsError(error);
                }

                return(false);
            }
            ;
            if (!responseCreator.IsValidData(responseData))
            {
                return(false);
            }
            ;

            return(true);
        }