C# Class OnlineVideos.MediaPortal2.VideoViewModel

Inheritance: MediaPortal.UI.Presentation.DataObjects.ListItem
Mostra file Open project: offbyoneBB/mp-onlinevideos2 Class Usage Examples

Protected Properties

Property Type Description
_airdateProperty MediaPortal.Common.General.AbstractProperty
_contextMenuEntriesProperty MediaPortal.Common.General.AbstractProperty
_descriptionProperty MediaPortal.Common.General.AbstractProperty
_eventDelegator OnlineVideos.CrossDomain.PropertyChangedDelegator
_lengthProperty MediaPortal.Common.General.AbstractProperty
_thumbnailImageProperty MediaPortal.Common.General.AbstractProperty
_title2Property MediaPortal.Common.General.AbstractProperty
_titleProperty MediaPortal.Common.General.AbstractProperty

Public Methods

Method Description
ChoosePlaybackOptions ( string defaultUrl, Action resultHandler, bool skipDialog = false ) : void
Play ( List urls ) : void
VideoViewModel ( System.VideoInfo videoInfo, Category category, SiteSettings siteSettings, bool isDetailsVideo ) : System
VideoViewModel ( string title, string thumbImage ) : System

Protected Methods

Method Description
DownloadConcurrent ( ) : void
DownloadQueued ( ) : void
ExecuteCustomContextMenuEntry ( Sites entry ) : void
HandleCustomContextMenuEntry ( Sites entry ) : void
SelectPlaybackOption ( MediaPortal.UI.Presentation.DataObjects.ListItem option ) : void

Private Methods

Method Description
CreateContextMenuEntries ( ) : ItemsList
OnDownloadFileCompleted ( OnlineVideos.Downloading.DownloadList saveItems, Exception error ) : void
SaveSubtitles ( System.VideoInfo video, string destinationFileName ) : void
SaveVideo_Step1 ( OnlineVideos.Downloading.DownloadList saveItems, bool enque = false ) : void
SaveVideo_Step2 ( OnlineVideos.Downloading.DownloadList saveItems, List urls, bool enque ) : void
SaveVideo_Step3 ( OnlineVideos.Downloading.DownloadList saveItems, string url, bool enque ) : void

Method Details

ChoosePlaybackOptions() public method

public ChoosePlaybackOptions ( string defaultUrl, Action resultHandler, bool skipDialog = false ) : void
defaultUrl string
resultHandler Action
skipDialog bool
return void

DownloadConcurrent() protected method

protected DownloadConcurrent ( ) : void
return void

DownloadQueued() protected method

protected DownloadQueued ( ) : void
return void

ExecuteCustomContextMenuEntry() protected method

protected ExecuteCustomContextMenuEntry ( Sites entry ) : void
entry Sites
return void

HandleCustomContextMenuEntry() protected method

protected HandleCustomContextMenuEntry ( Sites entry ) : void
entry Sites
return void

Play() public method

public Play ( List urls ) : void
urls List
return void

SelectPlaybackOption() protected method

protected SelectPlaybackOption ( MediaPortal.UI.Presentation.DataObjects.ListItem option ) : void
option MediaPortal.UI.Presentation.DataObjects.ListItem
return void

VideoViewModel() public method

public VideoViewModel ( System.VideoInfo videoInfo, Category category, SiteSettings siteSettings, bool isDetailsVideo ) : System
videoInfo System.VideoInfo
category Category
siteSettings SiteSettings
isDetailsVideo bool
return System

VideoViewModel() public method

public VideoViewModel ( string title, string thumbImage ) : System
title string
thumbImage string
return System

Property Details

_airdateProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _airdateProperty
return MediaPortal.Common.General.AbstractProperty

_contextMenuEntriesProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _contextMenuEntriesProperty
return MediaPortal.Common.General.AbstractProperty

_descriptionProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _descriptionProperty
return MediaPortal.Common.General.AbstractProperty

_eventDelegator protected_oe property

protected PropertyChangedDelegator,OnlineVideos.CrossDomain _eventDelegator
return OnlineVideos.CrossDomain.PropertyChangedDelegator

_lengthProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _lengthProperty
return MediaPortal.Common.General.AbstractProperty

_thumbnailImageProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _thumbnailImageProperty
return MediaPortal.Common.General.AbstractProperty

_title2Property protected_oe property

protected AbstractProperty,MediaPortal.Common.General _title2Property
return MediaPortal.Common.General.AbstractProperty

_titleProperty protected_oe property

protected AbstractProperty,MediaPortal.Common.General _titleProperty
return MediaPortal.Common.General.AbstractProperty