Ejemplo n.º 1
0
        private void CheckIfUserExists()
        {
            FirebaseService firebaseService = new FirebaseService();

            User user = new User()
            {
                Id       = AccountManager.GetAccountId(),
                Email    = AccountManager.GetAccountMail().Replace('.', ','),
                Name     = AccountManager.GetAccountName(),
                UrlImage = AccountManager.GetImageURL()
            };

            bool existsUser = firebaseService.CheckUserExists(user).Result;

            if (!existsUser)
            {
                firebaseService.AddUser(user);
            }
        }