public string GetImageURL(string size, ImageSizes.ImageType type) { var path = ""; switch (type) { case ImageSizes.ImageType.Backdrop: path = backdrop_path; break; case ImageSizes.ImageType.Poster: path = poster_path; break; } return($"https://image.tmdb.org/t/p/{size}/{path}"); }
public static string GetSize(ImageSizes.ImageType type) => BestImageSize[type.ToString("g")];
public static string GetImage(Movie movie, ImageSizes.ImageType type) => movie.GetImageURL(GetSize(type), type);