C# Class Business.EditPlaylistBusiness

Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AutoBindFilesAsync() public static méthode

Automatically binds files in the playlist and load missing info.
public static AutoBindFilesAsync ( ) : Task
Résultat Task

EditPlaylistBusiness() public méthode

public EditPlaylistBusiness ( ) : System
Résultat System

GetRatingCategoriesAsync() public méthode

Loads the list of rating categories for the search interface.
public GetRatingCategoriesAsync ( bool addSpecial ) : Task>
addSpecial bool
Résultat Task>

GetRatingInitials() public méthode

Returns the 3 first letters of a rating category or the first letter of each word.
public GetRatingInitials ( string text ) : string
text string
Résultat string

GetSortedPlaylist() public méthode

public GetSortedPlaylist ( string search, string orderBy, ListSortDirection orderDirection ) : List
search string
orderBy string
orderDirection ListSortDirection
Résultat List

LoadBuyListAsync() public méthode

public LoadBuyListAsync ( SearchSettings settings, BuyProductType productType, bool showAllFiles ) : Task
settings DataAccess.SearchSettings
productType BuyProductType
showAllFiles bool
Résultat Task

LoadCategoriesAsync() public méthode

Loads the list of artists.
public LoadCategoriesAsync ( SearchSettings settings, SearchFilterEnum groupType ) : Task>
settings DataAccess.SearchSettings The filters to apply to the data.
groupType SearchFilterEnum
Résultat Task>

LoadFiles() public méthode

Loads all orphan files in the Natural Grounding folder as a list of strings.
public LoadFiles ( ) : void
Résultat void

LoadMediaInfoAsync() public méthode

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.
Résultat Task

LoadPlaylistAsync() public méthode

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.
Résultat Task

LoadPlaylistAsync() public méthode

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.
Résultat Task

RefreshPlaylist() public méthode

public RefreshPlaylist ( Media video, string oldFileName ) : void
video Media
oldFileName string
Résultat void

UpdateFileName() public méthode

public UpdateFileName ( System.Guid videoId, string fileName ) : bool
videoId System.Guid
fileName string
Résultat bool

UpdateFileName() public méthode

public UpdateFileName ( DataAccess.VideoListItem item, string fileName ) : bool
item DataAccess.VideoListItem
fileName string
Résultat bool