C# Класс Business.EditPlaylistBusiness

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AutoBindFilesAsync ( ) : Task

Automatically binds files in the playlist and load missing info.

EditPlaylistBusiness ( ) : System
GetRatingCategoriesAsync ( bool addSpecial ) : Task>

Loads the list of rating categories for the search interface.

GetRatingInitials ( string text ) : string

Returns the 3 first letters of a rating category or the first letter of each word.

GetSortedPlaylist ( string search, string orderBy, ListSortDirection orderDirection ) : List
LoadBuyListAsync ( SearchSettings settings, BuyProductType productType, bool showAllFiles ) : Task
LoadCategoriesAsync ( SearchSettings settings, SearchFilterEnum groupType ) : Task>

Loads the list of artists.

LoadFiles ( ) : void

Loads all orphan files in the Natural Grounding folder as a list of strings.

LoadMediaInfoAsync ( IProgress progress ) : Task

Loops through the Media table to set the FileName, Length, Width and Height fields.

LoadPlaylistAsync ( SearchSettings settings ) : Task

Loads the playlist from the database with specified filter conditions.

LoadPlaylistAsync ( SearchSettings settings, bool forceScanFolder ) : Task

Loads the playlist from the database with specified filter conditions.

RefreshPlaylist ( Media video, string oldFileName ) : void
UpdateFileName ( System.Guid videoId, string fileName ) : bool
UpdateFileName ( DataAccess.VideoListItem item, string fileName ) : bool

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

Метод Описание
MergePlaylist ( SearchSettings settings ) : void

Merges the list of files in the folder with the data coming from the database.

OrphanMatchesConditions ( DataAccess.MediaType mediaType, string fileName, SearchSettings settings ) : bool
RefreshFilesCache ( string fileName, bool isInDatabase ) : void

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

AutoBindFilesAsync() публичный статический Метод

Automatically binds files in the playlist and load missing info.
public static AutoBindFilesAsync ( ) : Task
Результат Task

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

public EditPlaylistBusiness ( ) : System
Результат System

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

Loads the list of rating categories for the search interface.
public GetRatingCategoriesAsync ( bool addSpecial ) : Task>
addSpecial bool
Результат Task>

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

Returns the 3 first letters of a rating category or the first letter of each word.
public GetRatingInitials ( string text ) : string
text string
Результат string

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

public GetSortedPlaylist ( string search, string orderBy, ListSortDirection orderDirection ) : List
search string
orderBy string
orderDirection ListSortDirection
Результат List

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

public LoadBuyListAsync ( SearchSettings settings, BuyProductType productType, bool showAllFiles ) : Task
settings DataAccess.SearchSettings
productType BuyProductType
showAllFiles bool
Результат Task

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

Loads the list of artists.
public LoadCategoriesAsync ( SearchSettings settings, SearchFilterEnum groupType ) : Task>
settings DataAccess.SearchSettings The filters to apply to the data.
groupType SearchFilterEnum
Результат Task>

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

Loads all orphan files in the Natural Grounding folder as a list of strings.
public LoadFiles ( ) : void
Результат void

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

Loops through the Media table to set the FileName, Length, Width and Height fields.
public LoadMediaInfoAsync ( IProgress progress ) : Task
progress IProgress Reports the progress of the operation. First report is the amount of files to process, then subsequent reports represent the quantity done.
Результат Task

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

Loads the playlist from the database with specified filter conditions.
public LoadPlaylistAsync ( SearchSettings settings ) : Task
settings DataAccess.SearchSettings The filters to apply to the data.
Результат Task

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

Loads the playlist from the database with specified filter conditions.
public LoadPlaylistAsync ( SearchSettings settings, bool forceScanFolder ) : Task
settings DataAccess.SearchSettings The filters to apply to the data.
forceScanFolder bool Whether to scan files in folder to set FileExists.
Результат Task

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

public RefreshPlaylist ( Media video, string oldFileName ) : void
video Media
oldFileName string
Результат void

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

public UpdateFileName ( System.Guid videoId, string fileName ) : bool
videoId System.Guid
fileName string
Результат bool

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

public UpdateFileName ( DataAccess.VideoListItem item, string fileName ) : bool
item DataAccess.VideoListItem
fileName string
Результат bool