C# Class DataAccess.SearchSettings

ファイルを表示 Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Public Methods

Method Description
SearchSettings ( ) : System
SearchSettings ( DataAccess.MediaType mediaType, List excludeVideos, bool allowDownloading, double ratingRatio ) : System

Initializes a new instance of the SearchSettings class.

SetCondition ( FieldConditionEnum conditionField, bool conditionValue ) : void
SetRatingCategory ( string ratingCategory, OperatorConditionEnum ratingOperator, double ratingValue ) : void
Update ( List excludeVideos, bool allowDownloading ) : SearchSettings

Method Details

SearchSettings() public method

public SearchSettings ( ) : System
return System

SearchSettings() public method

Initializes a new instance of the SearchSettings class.
public SearchSettings ( DataAccess.MediaType mediaType, List excludeVideos, bool allowDownloading, double ratingRatio ) : System
mediaType DataAccess.MediaType The type of media to return.
excludeVideos List A list of videos to exclude from the search.
allowDownloading bool False to allow downloading from the Internet, True to search only local files.
ratingRatio double A number between -1 and 1 representing the rating Heigth/Depth priority ratio.
return System

SetCondition() public method

public SetCondition ( FieldConditionEnum conditionField, bool conditionValue ) : void
conditionField FieldConditionEnum
conditionValue bool
return void

SetRatingCategory() public method

public SetRatingCategory ( string ratingCategory, OperatorConditionEnum ratingOperator, double ratingValue ) : void
ratingCategory string
ratingOperator OperatorConditionEnum
ratingValue double
return void

Update() public method

public Update ( List excludeVideos, bool allowDownloading ) : SearchSettings
excludeVideos List
allowDownloading bool
return SearchSettings