Ejemplo n.º 1
0
    public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback)
    {
        /*
         * Autentciation checking
         * If _initInProgress == false, this means drive need autentication
         * and _initInProgress == true, this means drive doesn't need autentication process
         */
        Initialize();
        _authen_callback = callback;

        if (_initInProgress == false)
        {
            _isAuthenticationDone = false;
            StartCoroutine(StartAuthentication_internal(delegate(bool res, int resCode) {
                _isAuthenticationDone  = true;
                _AuthenticationResCode = resCode;
                if (res)
                {
                    _isAuthenticationSucceed = true;
                }
                else
                {
                    _isAuthenticationSucceed = false;
                }
            }, 0));
        }
    }
Ejemplo n.º 2
0
    public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback)
    {
        if (_type == eCloudType.NotSelected)
        {
            return;
        }

        switch (_type)
        {
        case eCloudType.bCloudDrive:
        {
            _bDriveAPI.StartAuthentication(callback);
        }
        break;

        case eCloudType.GoogleDrive:
        {
            _bGoogleAPI.StartAuthentication(callback);
        }
        break;
        }
    }
Ejemplo n.º 3
0
	public void StartAuthentication(bhClowdDriveAPI.Authentication_Callback callback){
        /*
		 * Autentciation checking
		 * If _initInProgress == false, this means drive need autentication
		 * and _initInProgress == true, this means drive doesn't need autentication process
		 */
        Initialize();
        _authen_callback = callback;

		if (_initInProgress == false) { 
			_isAuthenticationDone = false;
			StartCoroutine (StartAuthentication_internal (delegate(bool res, int resCode) {
				_isAuthenticationDone = true;
				_AuthenticationResCode = resCode;
				if(res)
					_isAuthenticationSucceed = true;
				else
					_isAuthenticationSucceed = false;

			},0));
		}
	}