Beispiel #1
0
        public static void SignInAnonymously(Action <string> onSignIn)
        {
            FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {
                DependencyStatus dependencyStatus = task.Result;

                if (dependencyStatus == DependencyStatus.Available)
                {
                    DebugLog.Normal("Firebase : ユーザー設定を行います");
                    MFBFAuth.SignInAnonymously(onSignIn);
                }
                else
                {
                    DebugLog.Error("Firebase : 依存関係を解決できませんでした: " + dependencyStatus);
                }

                MFBFDatabase.SetupDatabase(DATA_BASE_URL);
            });
        }
Beispiel #2
0
 public static void SetById(string key, string id, string json, Action onSuccess, Action onFailed)
 {
     MFBFDatabase.SetByID(key, id, json, onSuccess, onFailed);
 }
Beispiel #3
0
 public static void GetOrderByLast(string key, string sortKey, int fetchCount, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetOrderByLast(key, sortKey, fetchCount, onSuccess, onFailed);
 }
Beispiel #4
0
 public static void GetAll(string key, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetAll(key, onSuccess, onFailed);
 }
Beispiel #5
0
 public static void GetById(string key, string id, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetByID(key, id, onSuccess, onFailed);
 }