Method | Description | |
---|---|---|
GetVideoByFileName ( string fileName ) : |
||
GetVideoById ( System.Guid videoId ) : |
||
GetVideoByTitle ( string artist, string title ) : |
||
SelectRandomId ( IQueryable |
Selects random videos from query result while giving higher priority to videos with higher preference.
|
|
SelectVideo ( IQueryable |
Return a random video from the database matching specified conditions.
|
|
SelectVideo ( |
Return a random video from the database matching specified conditions.
|
|
VideoMatchesConditions ( |
Returns whether specified video matches specified conditions.
|
Method | Description | |
---|---|---|
PreferenceToInt ( double preference ) : int |
Returns an integer representation of the preference field where its weight grows exponentially.
|
public static GetVideoByFileName ( string fileName ) : |
||
fileName | string | |
return |
public static GetVideoById ( System.Guid videoId ) : |
||
videoId | System.Guid | |
return |
public static GetVideoByTitle ( string artist, string title ) : |
||
artist | string | |
title | string | |
return |
public static SelectRandomId ( IQueryable |
||
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. |
return | List |
public static SelectVideo ( IQueryable |
||
data | IQueryable |
The list of videos in which to search; generally Entities.Media. |
settings | An object containing various search settings. | |
count | int | The quantity of results to return. |
maintainCurrent | If specified, the currently selected video will be kept. | |
return | List |
public static SelectVideo ( |
||
settings | An object containing various search settings. | |
count | int | The quantity of results to return. |
maintainCurrent | If specified, the currently selected video will be kept. | |
return | List |
public static VideoMatchesConditions ( |
||
video | The video to evaluate. | |
settings | An object containing various search settings. | |
return | bool |