Esempio n. 1
0
        public BookDetails(Book book, BackablePage booksPage)
        {
            this.currentBook = book;
            this.booksPage   = booksPage;

            BindingContext = book;

            FirebaseService firebaseService = new FirebaseService();

            IsFavourite = firebaseService.CheckIfIsFavourite(AccountManager.GetAccountId(), currentBook).Result;

            InitializeComponent();
        }
Esempio n. 2
0
        public MovieDetails(Movie movie, BackablePage moviesPage)
        {
            this.currentMovie = movie;
            this.moviesPage   = moviesPage;

            BindingContext = movie;

            FirebaseService firebaseService = new FirebaseService();

            IsFavourite = firebaseService.CheckIfIsFavourite(AccountManager.GetAccountId(), currentMovie).Result;

            InitializeComponent();
        }
Esempio n. 3
0
        public SongDetails(Song song, BackablePage songsPage)
        {
            this.currentSong = song;
            this.songsPage   = songsPage;

            BindingContext = song;

            FirebaseService firebaseService = new FirebaseService();

            IsFavourite = firebaseService.CheckIfIsFavourite(AccountManager.GetAccountId(), currentSong).Result;

            InitializeComponent();
        }