public async Task AddToHistory(IMovieIntro movie) { var firebase = new FirebaseClient(LinksContainer.PredixFirebase); var uniqueUserToken = Application.Current.Properties[ApplicationProperties.UserId].ToString(); // Add id to the watchlist await firebase.Child(uniqueUserToken).Child(_tabName) .Child(movie.Id.ToString()) .PutAsync(JsonConvert.SerializeObject(movie)); }
private async Task ItemSelected(IMovieIntro movie) { try { await _pageService.PushAsync(new PopupLoading()); await _pageService.PushAsync(new MovieInfo(movie as MovieShort)); } catch (Exception ex) { await _pageService.DisplayAlert(AppResources.WarningTitle, ex.Message); } finally { SelectedItem = null; await _pageService.PopAsync(); } }