Beispiel #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);
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #7
0
 private static string buildPosterPath(string path, string filename, PosterSize size)
 {
     return makePathStringSafe(path) + @"\" + filename + size.ToString() + ".jpg";
 }
Beispiel #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);
 }
Beispiel #9
0
 public Uri CreatePosterLink(string partPath, PosterSize posterSize = PosterSize.w500) => CreateImageLink(partPath, posterSize.ToString());
Beispiel #10
0
 private Uri Uri(PosterSize size)
 {
     return(MakeImageUri(size.ToString(), PosterPath));
 }