Move all appropriate DTOs to sealed records.
This commit is contained in:
parent
bc41b0256e
commit
3ca72b0b20
199 changed files with 234 additions and 221 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue