Package knf.hydra.core.models.data
Class VideoItem
-
- All Implemented Interfaces:
public class VideoItem extends SourceItem
Represents a video item in the source
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumVideoItem.QualityRepresents the quality of the video item
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final VideoItem.Qualityqualityprivate final List<Subtitle>subtitlesprivate final BooleanneedDecoderprivate final BooleancanDownloadprivate final Stringpayload
-
Method Summary
Modifier and Type Method Description final StringgetType()final VideoItem.QualitygetQuality()final List<Subtitle>getSubtitles()final BooleangetNeedDecoder()final BooleangetCanDownload()final StringgetPayload()-
-
Constructor Detail
-
VideoItem
VideoItem(String name, String link, String type, VideoItem.Quality quality, List<Subtitle> subtitles, Boolean needDecoder, Boolean canDownload, String payload)
- Parameters:
name- Item namelink- Item linktype- Optional item subtextquality- Optional quality type (icon in the source list)needDecoder- Specify if this link needs to be processed before playing or it can be played instantly, default is truecanDownload- Specify if this link can be downloadedpayload- Optional payload for custom decoders
-
-
Method Detail
-
getQuality
final VideoItem.Quality getQuality()
-
getSubtitles
final List<Subtitle> getSubtitles()
-
getNeedDecoder
final Boolean getNeedDecoder()
-
getCanDownload
final Boolean getCanDownload()
-
getPayload
final String getPayload()
-
-
-
-