Implemented Publication Status in SeriesMetadata and the ability to filter it. (#915)

This commit is contained in:
Joseph Milazzo 2022-01-08 13:10:03 -08:00 committed by GitHub
parent f8e0fb8a27
commit 2fbcf203aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 3015 additions and 19 deletions

View file

@ -63,6 +63,14 @@ namespace API.Entities
/// Language for the Chapter/Issue
/// </summary>
public string Language { get; set; }
/// <summary>
/// Total number of issues in the series
/// </summary>
public int TotalCount { get; set; } = 0;
/// <summary>
/// Number in the Total Count
/// </summary>
public int Count { get; set; } = 0;
/// <summary>

View file

@ -0,0 +1,23 @@
using System.ComponentModel;
namespace API.Entities.Enums;
public enum PublicationStatus
{
/// <summary>
/// Default Status. Publication is currently in progress
/// </summary>
[Description("On Going")]
OnGoing = 0,
/// <summary>
/// Series is on temp or indefinite Hiatus
/// </summary>
[Description("Hiatus")]
Hiatus = 1,
/// <summary>
/// Publication has finished releasing
/// </summary>
[Description("Completed")]
Completed = 2
}

View file

@ -14,7 +14,6 @@ namespace API.Entities.Metadata
public string Summary { get; set; }
public ICollection<CollectionTag> CollectionTags { get; set; }
public ICollection<Genre> Genres { get; set; } = new List<Genre>();
@ -36,6 +35,11 @@ namespace API.Entities.Metadata
/// Language of the content (ISO 639-1 code)
/// </summary>
public string Language { get; set; } = string.Empty;
/// <summary>
/// Total number of issues in the series
/// </summary>
public int Count { get; set; } = 0;
public PublicationStatus PublicationStatus { get; set; }
// Relationship
public Series Series { get; set; }