Move all appropriate DTOs to sealed records.

This commit is contained in:
Joseph Milazzo 2025-05-04 08:41:29 -05:00
parent bc41b0256e
commit 3ca72b0b20
199 changed files with 234 additions and 221 deletions

View file

@ -1,14 +1,18 @@
using API.Entities.Enums;
using API.Entities;
using API.Entities.Enums;
using API.Entities.Metadata;
using API.Services.Plus;
namespace API.DTOs;
#nullable enable
public class RatingDto
public sealed record RatingDto
{
public int AverageScore { get; set; }
public int FavoriteCount { get; set; }
public ScrobbleProvider Provider { get; set; }
/// <inheritdoc cref="ExternalRating.Authority"/>
public RatingAuthority Authority { get; set; } = RatingAuthority.User;
public string? ProviderUrl { get; set; }
}