Implemented Publication Status in SeriesMetadata and the ability to filter it. (#915)
This commit is contained in:
parent
f8e0fb8a27
commit
2fbcf203aa
28 changed files with 3015 additions and 19 deletions
|
|
@ -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>
|
||||
|
|
|
|||
23
API/Entities/Enums/PublicationStatus.cs
Normal file
23
API/Entities/Enums/PublicationStatus.cs
Normal 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
|
||||
|
||||
}
|
||||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue