Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelViewModel ¶ added in v0.2.61
type ChannelViewModel struct { ChannelId string ChannelTitle string ChannelDescription string ChannelBadgeCount int Videos []*VideoViewModel PlaylistsOrder []string Playlists map[string]string ChannelAutoRefresh bool ChannelAutoDownload bool ChannelDownloadPolicy data.DownloadPolicy AllDownloadPolicies []data.DownloadPolicy ChannelPreferSingleFormat bool ChannelExpand bool }
func GetChannelViewModel ¶ added in v0.2.61
func GetChannelViewModel(channelId string, rdx kevlar.ReadableRedux) *ChannelViewModel
type ListViewModel ¶ added in v0.2.66
type ListViewModel struct { Continue []*VideoViewModel Videos []*VideoViewModel Downloads []*VideoViewModel ChannelsOrder []string Channels map[string][]*ChannelViewModel PlaylistsOrder []string Playlists map[string][]*PlaylistViewModel Favorites []*VideoViewModel HasHistory bool }
func GetListViewModel ¶ added in v0.2.66
func GetListViewModel(rdx kevlar.ReadableRedux) (*ListViewModel, error)
type PlaylistViewModel ¶
type PlaylistViewModel struct { PlaylistId string PlaylistTitle string PlaylistChannelTitle string PlaylistBadgeCount int PlaylistAutoRefresh bool PlaylistAutoDownload bool PlaylistDownloadPolicy data.DownloadPolicy AllDownloadPolicies []data.DownloadPolicy PlaylistExpand bool PlaylistPreferSingleFormat bool Videos []*VideoViewModel }
func GetPlaylistViewModel ¶ added in v0.2.61
func GetPlaylistViewModel(playlistId string, rdx kevlar.ReadableRedux) *PlaylistViewModel
type VideoErrorViewModel ¶ added in v0.2.77
func GetVideoErrorViewModel ¶ added in v0.2.77
func GetVideoErrorViewModel(videoId, error string, rdx kevlar.ReadableRedux) *VideoErrorViewModel
type VideoManagementViewModel ¶ added in v0.2.73
type VideoManagementViewModel struct { VideoId string VideoTitle string CurrentTime string Favorite bool Progress bool Ended bool EndedReason data.VideoEndedReason AllEndedReasons []data.VideoEndedReason DownloadQueued bool ForcedDownload bool PreferSingleFormat bool Source bool }
func GetVideoManagementModel ¶ added in v0.2.73
func GetVideoManagementModel(videoId string, rdx kevlar.ReadableRedux) *VideoManagementViewModel
type VideoOptions ¶
type VideoOptions int
const ( ShowPoster VideoOptions = iota ShowPublishedDate ShowEndedDate ShowProgress ShowDuration ShowOwnerChannel ShowViewCount )
type VideoViewModel ¶
type VideoViewModel struct { VideoId string VideoUrl string VideoTitle string Favorite bool ShowPoster bool ShowPublishedDate bool PublishedDate string DownloadedDate string ShowEndedTime bool EndedTime string EndedReason data.VideoEndedReason ShowDuration bool Duration string ShowProgress bool CurrentTimeSeconds string DurationSeconds string ShowOwnerChannel bool OwnerChannel string ShowViewCount bool ViewCount string }
func GetVideoViewModel ¶
func GetVideoViewModel(videoId string, rdx kevlar.ReadableRedux, options ...VideoOptions) *VideoViewModel
type WatchViewModel ¶ added in v0.2.73
type WatchViewModel struct { VideoId string VideoUrl string CurrentTime string EndedTime string EndedReason data.VideoEndedReason VideoPoster string LocalPlayback bool CurrentTimeSeconds string DurationSeconds string VideoTitle string VideoDescription string VideoPropertiesOrder []string VideoProperties map[string]string ChannelViewModel *ChannelViewModel PlaylistViewModel *PlaylistViewModel }
func GetWatchViewModel ¶ added in v0.2.73
func GetWatchViewModel(videoId, currentTime string, rdx kevlar.WriteableRedux) (*WatchViewModel, error)
Click to show internal directories.
Click to hide internal directories.