discover tv vote average at most, vote count at most filters

This commit is contained in:
Márk Ángyán 2023-03-25 19:59:08 +01:00
parent 0f2da9b626
commit 10b60581ea

View File

@ -125,6 +125,15 @@ namespace TMDbLib.Objects.Discover
return this;
}
/// <summary>
/// Only include TV shows that are equal to, or have a lower average rating than this value. Expected value is a float.
/// </summary>
public DiscoverTv WhereVoteAverageIsAtMost(double score)
{
Parameters["vote_average.lte"] = score.ToString();
return this;
}
/// <summary>
/// Only include TV shows that are equal to, or have a vote count higher than this value. Expected value is an integer.
/// </summary>
@ -134,6 +143,15 @@ namespace TMDbLib.Objects.Discover
return this;
}
/// <summary>
/// Only include TV shows that are equal to, or have a vote count lower than this value. Expected value is an integer.
/// </summary>
public DiscoverTv WhereVoteCountIsAtMost(int count)
{
Parameters["vote_count.lte"] = count.ToString();
return this;
}
/// <summary>
/// Specifies which language to use for translatable fields
/// </summary>