C# 클래스 DataAccess.PlayerAccess

파일 보기 프로젝트 열기: mysteryx93/NaturalGroundingPlayer

공개 메소드들

메소드 설명
GetVideoByFileName ( string fileName ) : Media
GetVideoById ( System.Guid videoId ) : Media
GetVideoByTitle ( string artist, string title ) : Media
SelectRandomId ( IQueryable query, int count, int &totalFound ) : List

Selects random videos from query result while giving higher priority to videos with higher preference.

SelectVideo ( IQueryable data, SearchSettings settings, int count, Media maintainCurrent ) : List

Return a random video from the database matching specified conditions.

SelectVideo ( SearchSettings settings, int count, Media maintainCurrent ) : List

Return a random video from the database matching specified conditions.

VideoMatchesConditions ( Media video, SearchSettings settings ) : bool

Returns whether specified video matches specified conditions.

비공개 메소드들

메소드 설명
PreferenceToInt ( double preference ) : int

Returns an integer representation of the preference field where its weight grows exponentially.

메소드 상세

GetVideoByFileName() 공개 정적인 메소드

public static GetVideoByFileName ( string fileName ) : Media
fileName string
리턴 Media

GetVideoById() 공개 정적인 메소드

public static GetVideoById ( System.Guid videoId ) : Media
videoId System.Guid
리턴 Media

GetVideoByTitle() 공개 정적인 메소드

public static GetVideoByTitle ( string artist, string title ) : Media
artist string
title string
리턴 Media

SelectRandomId() 공개 정적인 메소드

Selects random videos from query result while giving higher priority to videos with higher preference.
public static SelectRandomId ( IQueryable query, int count, int &totalFound ) : List
query IQueryable The query returning the list of videos to chose from.
count int The amount of videos to select.
totalFound int The total amount of videos matching the query.
리턴 List

SelectVideo() 공개 정적인 메소드

Return a random video from the database matching specified conditions.
public static SelectVideo ( IQueryable data, SearchSettings settings, int count, Media maintainCurrent ) : List
data IQueryable The list of videos in which to search; generally Entities.Media.
settings SearchSettings An object containing various search settings.
count int The quantity of results to return.
maintainCurrent Media If specified, the currently selected video will be kept.
리턴 List

SelectVideo() 공개 정적인 메소드

Return a random video from the database matching specified conditions.
public static SelectVideo ( SearchSettings settings, int count, Media maintainCurrent ) : List
settings SearchSettings An object containing various search settings.
count int The quantity of results to return.
maintainCurrent Media If specified, the currently selected video will be kept.
리턴 List

VideoMatchesConditions() 공개 정적인 메소드

Returns whether specified video matches specified conditions.
public static VideoMatchesConditions ( Media video, SearchSettings settings ) : bool
video Media The video to evaluate.
settings SearchSettings An object containing various search settings.
리턴 bool