/// <summary>
    /// Checks whether the response from Google API.
    /// </summary>
    public void CheckComplete()
    {
        if (www != null && www.isDone)
        {
            _status = string.IsNullOrEmpty(www.error) ? OnlineMapsQueryStatus.success : OnlineMapsQueryStatus.error;
            _response = _status == OnlineMapsQueryStatus.success ? www.text : www.error;

            if (OnComplete != null) OnComplete(_response);
            if (OnFinish != null) OnFinish(this);
            www.Dispose();
            www = null;
        }
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Destroys the current request to Google API.
 /// </summary>
 public void Destroy()
 {
     if (OnDispose != null)
     {
         OnDispose(this);
     }
     www        = null;
     _response  = string.Empty;
     _status    = OnlineMapsQueryStatus.disposed;
     customData = null;
     OnComplete = null;
     OnFinish   = null;
 }
Ejemplo n.º 3
0
    /// <summary>
    /// Checks whether the response from Google API.
    /// </summary>
    public void CheckComplete()
    {
        if (www != null && www.isDone)
        {
            _status   = string.IsNullOrEmpty(www.error) ? OnlineMapsQueryStatus.success : OnlineMapsQueryStatus.error;
            _response = _status == OnlineMapsQueryStatus.success ? www.text : www.error;

            if (OnComplete != null)
            {
                OnComplete(_response);
            }
            if (OnFinish != null)
            {
                OnFinish(this);
            }

            www        = null;
            customData = null;
        }
    }
 /// <summary>
 /// Destroys the current request to Google API.
 /// </summary>
 public void Destroy()
 {
     if (OnDispose != null) OnDispose(this);
     if (www != null)
     {
         www.Dispose();
         www = null;
     }
     _response = string.Empty;
     _status = OnlineMapsQueryStatus.disposed;
     OnComplete = null;
     OnFinish = null;
 }