public void OnLoginAnonymously() { MFBFNetwork.SignInAnonymously(userId => { _info.text = $"{userId}がログインしました"; _userid = userId; }); }
public void OnLoginAnalytics() { if (string.IsNullOrEmpty(_userid)) { _info.text = "userIdを設定するためにログインしてください"; return; } _info.text = "ログインしたことを通知します"; MFBFNetwork.SetupAnalytics(_userid); }
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); }
public void OnGetOrderByLast() { MFBFNetwork.GetOrderByLast(KEY, SORT_KEY, 2, null, null); }
public void OnGetAll() { MFBFNetwork.GetAll(KEY, s => { }, () => { }); }
public void OnGetById() { MFBFNetwork.GetById(KEY, _userid, s => { }, () => { }); }
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 }
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 }
public static void SignInAnonymously(Action <string> onSignInRegister) { #if USE_FIREBASE MFBFNetwork.SignInAnonymously(onSignInRegister); #endif }