TraktPlugin.TraktCache.UserRating C# (CSharp) Méthode

UserRating() public static méthode

public static UserRating ( this movie ) : int?
movie this
Résultat int?
        public static int? UserRating(this TraktMovie movie)
        {
            if (RatedMovies == null)
                return null;

            var ratedMovie = RatedMovies.FirstOrDefault(m => ((m.Movie.Ids.Trakt == movie.Ids.Trakt) && m.Movie.Ids.Trakt != null) ||
                                                             ((m.Movie.Ids.Imdb == movie.Ids.Imdb) && m.Movie.Ids.Imdb.ToNullIfEmpty() != null) ||
                                                             ((m.Movie.Ids.Tmdb == movie.Ids.Tmdb) && m.Movie.Ids.Tmdb != null));
            if (ratedMovie == null)
                return null;

            return ratedMovie.Rating;
        }

Same methods

TraktCache::UserRating ( this episode, TraktShow show ) : int?
TraktCache::UserRating ( this season, TraktShowSummary show ) : int?
TraktCache