/*! Copyright (c) 2019, XAPPmedia */ import { PlayableMedia } from "./PlayableMedia"; /** * An individual item (from ) found within an RSS Feed. */ export interface RSSFeedItem { /** * The title of the feed the item belongs to. * * This is primarily used to remind listeners what feed the feed item came from. */ feedTitle: string; /** * The title of the feed item. */ title?: string; /** * Description of the feed item. */ description?: string; /** * The subtitle of the feed item. */ subtitle?: string; /** * If the feed item is marked explicit. */ explicit?: boolean; /** * The link of the feed item. * * This is typically where users can find more information about the RSS feed item and * not the actual media content. */ link?: string; /** * The URL within the tag. */ url: string; /** * The media type within the tag. */ mediaType?: "video/mpeg" | "audio/mpeg"; /** * The length within the tag. */ length?: number; /** * URL for the image */ image?: string; /** * The GUID of the feed item. */ id?: string; /** * Date the feed item was published. * * RFC 822 encoded date string, in accordance with the RSS 2.0 specification. * * One exception is the year may be expressed with two digits instead of the * preferred four digits. */ pubDate?: string; } export type RSSFeedItemPlayableMedia = RSSFeedItem & PlayableMedia;