C# Класс OnlineVideos.Sites.JSurf.AmazonPrimeSiteUtil

General Util class for web automation - that is where we load the information by scraping the website and play via a browser
Наследование: SiteUtilBase, IBrowserVersionEmulation, IInputStreamSite
Показать файл Открыть проект

Открытые методы

Метод Описание
DiscoverDynamicCategories ( ) : int

Override the loading of main categories

DiscoverNextPageCategories ( NextPageCategory nextPagecategory ) : int

Get the next page of categories

DiscoverSubCategories ( Category parentCategory ) : int

Override the loading of sub categories

GetMultipleVideoUrls ( System.VideoInfo video, bool inPlaylist = false ) : List
GetStreamProperties ( System.VideoInfo videoInfo, string>.Dictionary &properties ) : bool
GetVideos ( Category category ) : List

Load the list of videos - see if they've been pre-loaded when populating categories or not

Initialize ( SiteSettings siteSettings ) : void

Set the Web Automation Description from the enum

Search ( string query, string category = null ) : List

Приватные методы

Метод Описание
BuildCategories ( Category parentCategory, IList categoriesToPopulate ) : void

Build the specified category list

BuildVideos ( IList videosToPopulate, Category parentCategory ) : void

Build the video list for the specified category

GetCategorySortField ( Category categ ) : string

Get the sort field for the category

Описание методов

DiscoverDynamicCategories() публичный Метод

Override the loading of main categories
public DiscoverDynamicCategories ( ) : int
Результат int

DiscoverNextPageCategories() публичный Метод

Get the next page of categories
public DiscoverNextPageCategories ( NextPageCategory nextPagecategory ) : int
nextPagecategory NextPageCategory
Результат int

DiscoverSubCategories() публичный Метод

Override the loading of sub categories
public DiscoverSubCategories ( Category parentCategory ) : int
parentCategory Category
Результат int

GetMultipleVideoUrls() публичный Метод

public GetMultipleVideoUrls ( System.VideoInfo video, bool inPlaylist = false ) : List
video System.VideoInfo
inPlaylist bool
Результат List

GetStreamProperties() публичный Метод

public GetStreamProperties ( System.VideoInfo videoInfo, string>.Dictionary &properties ) : bool
videoInfo System.VideoInfo
properties string>.Dictionary
Результат bool

GetVideos() публичный Метод

Load the list of videos - see if they've been pre-loaded when populating categories or not
public GetVideos ( Category category ) : List
category Category
Результат List

Initialize() публичный Метод

Set the Web Automation Description from the enum
public Initialize ( SiteSettings siteSettings ) : void
siteSettings SiteSettings
Результат void

Search() публичный Метод

public Search ( string query, string category = null ) : List
query string
category string
Результат List