Example #1
0
        public UsersViewModel()
        {
            auth = DependencyService.Get <IAuth>();
            _firebaseStorageHelper = new FirebaseStorageHelper();
            _services       = new DBFirebase();
            AddUserCommand  = new Command(async() => await auth.AddUser(Name, Age, City, Description, Gender, OppositeGender, ImageUrl = await UploadPhoto(ImageUrl)));
            RefreshMessages = new Command(async() => await RefreshUserMessages());
            DownloadPhoto();

            SelectPhotoCommand = new Command(async() => await SelectPhoto());
            var test = auth.GetUserProfile();
        }