Пример #1
0
 /// <summary>
 /// Uri to the poster image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size)
 {
     return Utilities.Extensions.MakeImageUri(size.ToString(), PosterPath);
 }
Пример #2
0
 /// <summary>
 /// Uri to the poster image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size)
 {
     return(Utilities.Extensions.MakeImageUri(size.ToString(), PosterPath));
 }
Пример #3
0
 /// <summary>
 /// Uri to the poster image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size = PosterSize.w342)
 {
     return(Extensions.MakeImageUri(size.ToString(), PosterPath));
 }
Пример #4
0
 /// <summary>
 /// Uri to the profile image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size)
 {
     return(Extensions.MakeImageUri(size.ToString(), FilePath));
 }
Пример #5
0
 /// <summary>
 /// Uri to the poster image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size = PosterSize.w342)
 {
     return Extensions.MakeImageUri(size.ToString(), PosterPath);
 }
Пример #6
0
 public static string ImageFullPath_Query(string posterPath, PosterSize posterSize)
 {
     return(!String.IsNullOrEmpty(posterPath) ?
            $"http://image.tmdb.org/t/p/{posterSize.ToString()}{posterPath}" :
            ApiHelper.PathBackdrop);
 }
Пример #7
0
 private static string buildPosterPath(string path, string filename, PosterSize size)
 {
     return makePathStringSafe(path) + @"\" + filename + size.ToString() + ".jpg";
 }
Пример #8
0
 /// <summary>
 /// Uri to the profile image.
 /// </summary>
 /// <param name="size">The size for the image as required</param>
 /// <returns>The uri to the sized image</returns>
 public Uri Uri(PosterSize size)
 {
     return Extensions.MakeImageUri(size.ToString(), FilePath);
 }
Пример #9
0
 public Uri CreatePosterLink(string partPath, PosterSize posterSize = PosterSize.w500) => CreateImageLink(partPath, posterSize.ToString());
Пример #10
0
 private Uri Uri(PosterSize size)
 {
     return(MakeImageUri(size.ToString(), PosterPath));
 }