More Polish (#2320)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Joe Milazzo 2023-10-17 11:05:14 -05:00 committed by GitHub
parent cd3a15fa3b
commit 5f11973696
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 337 additions and 161 deletions

View file

@ -1,4 +1,5 @@
using System.Collections.Generic;
using API.DTOs.Scrobbling;
namespace API.DTOs.Recommendation;
@ -8,7 +9,7 @@ public class ExternalSeriesDetailDto
public int? AniListId { get; set; }
public long? MALId { get; set; }
public IList<string> Synonyms { get; set; }
public PlusMediaFormat PlusMediaFormat { get; set; }
public MediaFormat PlusMediaFormat { get; set; }
public string? SiteUrl { get; set; }
public string? CoverUrl { get; set; }
public IList<string> Genres { get; set; }

View file

@ -1,15 +0,0 @@
using System.ComponentModel;
namespace API.DTOs.Recommendation;
public enum PlusMediaFormat
{
[Description("Manga")]
Manga = 1,
[Description("Comic")]
Comic = 2,
[Description("LightNovel")]
LightNovel = 3,
[Description("Book")]
Book = 4
}

View file

@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
using API.DTOs.Recommendation;
namespace API.DTOs.Scrobbling;
#nullable enable
@ -18,12 +19,20 @@ public enum ScrobbleEventType
Review = 4
}
/// <summary>
/// Represents PlusMediaFormat
/// </summary>
public enum MediaFormat
{
[Description("Manga")]
Manga = 1,
[Description("Comic")]
Comic = 2,
[Description("LightNovel")]
LightNovel = 3,
Book = 4
[Description("Book")]
Book = 4,
Unknown = 5
}