using System.Collections.Generic; using Kyoo.Abstractions.Controllers; namespace Kyoo.Abstractions.Models { /// /// An interface representing items that contains images (like posters, thumbnails, logo, banners...) /// public interface IThumbnails { /// /// The list of images mapped to a certain index. /// The string value should be a path supported by the . /// /// /// An arbitrary index should not be used, instead use indexes from /// public Dictionary Images { get; set; } // TODO remove Posters properties add them via the json serializer for every IThumbnails } /// /// A class containing constant values for images. To be used as index of a . /// public static class Images { /// /// A poster is a 9/16 format image with the cover of the resource. /// public const int Poster = 0; /// /// A thumbnail is a 16/9 format image, it could ether be used as a background or as a preview but it usually /// is not an official image. /// public const int Thumbnail = 1; /// /// A logo is a small image representing the resource. /// public const int Logo = 2; /// /// A video of a few minutes that tease the content. /// public const int Trailer = 3; } }