Ingest ExternalReviews from K+
Adds a new entity ExternalChapterMetadata, which would allow us to extend chapters to Recommendations, Ratings, etc in the future
This commit is contained in:
parent
749fb24185
commit
052b3f9fe4
29 changed files with 647 additions and 137 deletions
|
|
@ -20,6 +20,12 @@ public class RatingBuilder : IEntityBuilder<AppUserRating>
|
|||
return this;
|
||||
}
|
||||
|
||||
public RatingBuilder WithChapterId(int? chapterId)
|
||||
{
|
||||
_rating.ChapterId = chapterId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public RatingBuilder WithRating(int rating)
|
||||
{
|
||||
_rating.Rating = Math.Clamp(rating, 0, 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue