private string ParseUnavailableElement(IEnumerator token)
        {
            UnityEngine.Debug.Log("OCMessageHandler::ParseUnavailableElement");

            string answer = null;

            if (token.MoveNext())    // Has more elements
            {
                // Get unavalable element id.
                string id = token.Current.ToString();

                OCLogger.Debugging("onLine: Unavailable element message received for [" + id + "].");
                _networkElement.MarkAsUnavailable(id);
                answer = OCNetworkElement.OK_MESSAGE;
            }
            else
            {
                answer = OCNetworkElement.FAILED_MESSAGE;
            }

            return(answer);
        }
Example #2
0
        private string ParseUnavailableElement(IEnumerator token)
        {
            System.Console.WriteLine(OCLogSymbol.RUNNING + "OCMessageHandler::ParseUnavailableElement");

            string answer = null;

            if (token.MoveNext())    // Has more elements
            {
                // Get unavalable element id.
                string id = token.Current.ToString();

                System.Console.WriteLine(OCLogSymbol.DETAILEDINFO + "Unavailable element message received for [" + id + "].");
                _networkElement.MarkAsUnavailable(id);
                answer = OCNetworkElement.OK_MESSAGE;
            }
            else
            {
                answer = OCNetworkElement.FAILED_MESSAGE;
            }

            return(answer);
        }