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