Esempio n. 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);
            });
        }
Esempio n. 2
0
 public static void SetById(string key, string id, string json, Action onSuccess, Action onFailed)
 {
     MFBFDatabase.SetByID(key, id, json, onSuccess, onFailed);
 }
Esempio n. 3
0
 public static void GetOrderByLast(string key, string sortKey, int fetchCount, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetOrderByLast(key, sortKey, fetchCount, onSuccess, onFailed);
 }
Esempio n. 4
0
 public static void GetAll(string key, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetAll(key, onSuccess, onFailed);
 }
Esempio n. 5
0
 public static void GetById(string key, string id, Action <string> onSuccess, Action onFailed)
 {
     MFBFDatabase.GetByID(key, id, onSuccess, onFailed);
 }