Exemplo n.º 1
0
 public void AuthWithOAuthToken(string provider, string token, Action <AuthData> onSuccess, Action <FirebaseError> onError)
 {
     lock (auth_sync) {
         long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
         activeCallEntry = new AuthCallInstanceEntry()
         {
             Instance = newnumber, OnSuccess = onSuccess, OnError = onError
         };
         _FirebaseAuthWithOAuthToken(GetiOSObject(), provider, token, authSuccessHandler, authFailureHandler, activeCallEntry.Instance);
     }
 }
Exemplo n.º 2
0
 public void AuthWithPassword(string email, string password, Action <AuthData> onSuccess, Action <FirebaseError> onError)
 {
     lock (auth_sync) {
         long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
         activeCallEntry = new AuthCallInstanceEntry()
         {
             Instance = newnumber, OnSuccess = onSuccess, OnError = onError
         };
         _FirebaseAuthWithPassword(GetEditorObject(), email, password, activeCallEntry.Instance);
     }
 }
Exemplo n.º 3
0
 public void AuthAnonymously(Action <AuthData> onSuccess, Action <FirebaseError> onError)
 {
     lock (auth_sync) {
         long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
         activeCallEntry = new AuthCallInstanceEntry()
         {
             Instance = newnumber, OnSuccess = onSuccess, OnError = onError
         };
         _FirebaseAuthAnonymously(GetiOSObject(), authSuccessHandler, authFailureHandler, activeCallEntry.Instance);
     }
 }
Exemplo n.º 4
0
    static void onAuthCancel(long reference, int code, String message, String details)
    {
        Action <FirebaseError> callback = null;

        lock (auth_sync) {
            if (activeCallEntry != null && activeCallEntry.Instance == reference)
            {
                callback        = activeCallEntry.OnError;
                activeCallEntry = null;
            }
        }
        if (callback != null)
        {
            callback(new FirebaseError(code, message, details));
        }
    }
Exemplo n.º 5
0
    static void onAuthSuccess(long reference, String token, String uid, long expiration)
    {
        Action <AuthData> callback = null;

        lock (auth_sync) {
            if (activeCallEntry != null && activeCallEntry.Instance == reference)
            {
                callback        = activeCallEntry.OnSuccess;
                activeCallEntry = null;
            }
        }
        if (callback != null)
        {
            callback(new AuthData(token, uid, expiration));
        }
    }
Exemplo n.º 6
0
	static void onAuthCancel(long reference, int code, String message, String details) {
		Action<FirebaseError> callback = null;
		lock (auth_sync) {
			if (activeCallEntry != null && activeCallEntry.Instance == reference) {
				callback = activeCallEntry.OnError;
				activeCallEntry = null;
			}
		}
		if (callback != null) {
			callback(new FirebaseError(code, message, details));
		}
	}
Exemplo n.º 7
0
	static void onAuthSuccess(long reference, String token, String uid, long expiration) {
		Action<AuthData> callback = null;
		lock (auth_sync) {
			if (activeCallEntry != null && activeCallEntry.Instance == reference) {
				callback = activeCallEntry.OnSuccess;
				activeCallEntry = null;
			}
		}
		if (callback != null) {
			callback(new AuthData(token, uid, expiration));
		}
	}
Exemplo n.º 8
0
	public void AuthWithOAuthToken (string provider, string token, Action<AuthData> onSuccess, Action<FirebaseError> onError)
	{
		lock (auth_sync) {
			long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
			activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError};
			_FirebaseAuthWithOAuthToken(GetiOSObject(), provider, token, authSuccessHandler, authFailureHandler, activeCallEntry.Instance);
		}
	}
Exemplo n.º 9
0
	public void AuthAnonymously (Action<AuthData> onSuccess, Action<FirebaseError> onError)
	{
		lock (auth_sync) {
			long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
			activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError};
			_FirebaseAuthAnonymously(GetiOSObject(), authSuccessHandler, authFailureHandler, activeCallEntry.Instance);
		}
	}
Exemplo n.º 10
0
	public void AuthWithPassword (string email, string password, Action<AuthData> onSuccess, Action<FirebaseError> onError)
	{
		lock (auth_sync) {
			long newnumber = activeCallEntry != null ? (activeCallEntry.Instance + 1) % long.MaxValue - 1 : 0;
			activeCallEntry = new AuthCallInstanceEntry() { Instance = newnumber, OnSuccess = onSuccess, OnError = onError};
			_FirebaseAuthWithPassword(GetEditorObject(), email, password, activeCallEntry.Instance);
		}
	}