Exemple #1
0
 public void OnLoginAnonymously()
 {
     MFBFNetwork.SignInAnonymously(userId =>
     {
         _info.text = $"{userId}がログインしました";
         _userid    = userId;
     });
 }
Exemple #2
0
        public void OnLoginAnalytics()
        {
            if (string.IsNullOrEmpty(_userid))
            {
                _info.text = "userIdを設定するためにログインしてください";
                return;
            }

            _info.text = "ログインしたことを通知します";
            MFBFNetwork.SetupAnalytics(_userid);
        }
Exemple #3
0
        public void OnSetById()
        {
            User   kajiya = new User("k-r", "gmail", 1);
            string json   = JsonUtility.ToJson(kajiya);

            MFBFNetwork.SetById(KEY, _userid, json, null, null);

            User hayato = new User("hayato", "ymail", 2);

            json = JsonUtility.ToJson(hayato);
            MFBFNetwork.SetById(KEY, "dadusadhasuod", json, null, null);

            User shouhei = new User("shouhei", "smail", 3);

            json = JsonUtility.ToJson(shouhei);
            MFBFNetwork.SetById(KEY, "dashoduasdao", json, null, null);
        }
Exemple #4
0
 public void OnGetOrderByLast()
 {
     MFBFNetwork.GetOrderByLast(KEY, SORT_KEY, 2, null, null);
 }
Exemple #5
0
 public void OnGetAll()
 {
     MFBFNetwork.GetAll(KEY, s => { }, () => { });
 }
Exemple #6
0
 public void OnGetById()
 {
     MFBFNetwork.GetById(KEY, _userid, s => { }, () => { });
 }
Exemple #7
0
        public static void GetOrderByLast(string key, string sortKey, int fetchCount, Action <string> onSuccess, Action onFailed)
        {
#if USE_FIREBASE
            MFBFNetwork.GetOrderByLast(key, sortKey, fetchCount, onSuccess, onFailed);
#endif
        }
Exemple #8
0
        public static void SetById(string key, string id, string json, Action onSuccess, Action onFailed)
        {
#if USE_FIREBASE
            MFBFNetwork.SetById(key, id, json, onSuccess, onFailed);
#endif
        }
Exemple #9
0
        public static void SignInAnonymously(Action <string> onSignInRegister)
        {
#if USE_FIREBASE
            MFBFNetwork.SignInAnonymously(onSignInRegister);
#endif
        }