Esempio n. 1
0
        public async Task <int> GetWebRating()
        {
            try
            {
                var      WA = new WebApi();
                OMDMovie OM = await WA.GetMovieOMDAPI(MovieDet.ImdbID);

                MovieDet.Ratings.AddRange(OM.Ratings);
                return(1);
            }catch (Exception)
            { return(0); }
        }
Esempio n. 2
0
        public async Task <int> GetWebRating()
        {
            try
            {
                var      WA = new WebApi();
                OMDMovie OM = await WA.GetMovieOMDAPI(TvShowDet.ImdbID);

                TvShowDet.Ratings.AddRange(OM.Ratings);
                return(1);
            }catch (Exception ex)
            {
                Crashes.TrackError(ex);
                return(0);
            }
        }