Profile page finished

This commit is contained in:
2024-11-02 15:22:25 +01:00
Unverified
parent 1154cc547b
commit 4b9034fe87
32 changed files with 1770 additions and 302 deletions

View File

@@ -24,12 +24,16 @@ public class MovieRatedResponse : MovieResponse, IQueryOrderable<MovieRatedRespo
{ "budget", x => x.Budget },
{ "rating.average", x => x.Rating.Average },
{ "rating.count", x => x.Rating.Count },
{ "user_rating", x => x.UserRating }
{ "user_rating", x => x.UserRating },
{ "user_rating_date", x => x.UserRatingDate }
};
[JsonPropertyName("user_rating")]
public short UserRating { get; set; }
[JsonPropertyName("user_rating_date")]
public DateTime UserRatingDate { get; set; }
#endregion
@@ -54,6 +58,7 @@ public class MovieRatedResponse : MovieResponse, IQueryOrderable<MovieRatedRespo
.Build();
Genres = mediaMovie.Media.Genres.Select(x => new GenreResponse(x)).ToList();
UserRating = response.Rating;
UserRatingDate = response.Date;
}
#endregion