C# Class AmazonScrape.ItemValidator

Static methods determine whether the inputs meet the user's search criteria
Show file Open project: ThomasRush/AmazonScrape Class Usage Examples

Public Methods

Method Description
ValidateItemName ( SearchCriteria criteria, string itemName ) : bool
ValidatePriceRange ( SearchCriteria criteria, DoubleRange priceRange ) : bool
ValidateReviewCount ( SearchCriteria criteria, int count ) : bool
ValidateReviewDistribution ( SearchCriteria criteria, ScoreDistribution scoreDistribution ) : bool

Method Details

ValidateItemName() public static method

public static ValidateItemName ( SearchCriteria criteria, string itemName ) : bool
criteria SearchCriteria
itemName string
return bool

ValidatePriceRange() public static method

public static ValidatePriceRange ( SearchCriteria criteria, DoubleRange priceRange ) : bool
criteria SearchCriteria
priceRange DoubleRange
return bool

ValidateReviewCount() public static method

public static ValidateReviewCount ( SearchCriteria criteria, int count ) : bool
criteria SearchCriteria
count int
return bool

ValidateReviewDistribution() public static method

public static ValidateReviewDistribution ( SearchCriteria criteria, ScoreDistribution scoreDistribution ) : bool
criteria SearchCriteria
scoreDistribution ScoreDistribution
return bool