C# 클래스 Business.EditPlaylistBusiness

파일 보기 프로젝트 열기: mysteryx93/NaturalGroundingPlayer 1 사용 예제들

공개 메소드들

메소드 설명
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