Implemented a parallelized, rough, scanning loop which parses out information and leaves us with an immutable dictionary mapping series to parsed infos for each file.

Added some Entities to help translate this into DB.
This commit is contained in:
Joseph Milazzo 2020-12-29 10:47:10 -06:00
parent 49b4ee0022
commit 0a49b07570
7 changed files with 220 additions and 7 deletions

28
API/Entities/Series.cs Normal file
View file

@ -0,0 +1,28 @@
using System.Collections.Generic;
namespace API.Entities
{
public class Series
{
/// <summary>
/// The UI visible Name of the Series. This may or may not be the same as the OriginalName
/// </summary>
public string Name { get; set; }
/// <summary>
/// Original Japanese Name
/// </summary>
public string OriginalName { get; set; }
/// <summary>
/// The name used to sort the Series. By default, will be the same as Name.
/// </summary>
public string SortName { get; set; }
/// <summary>
/// Summary information related to the Series
/// </summary>
public string Summary { get; set; }
public ICollection<Volume> Volumes { get; set; }
}
}

14
API/Entities/Volume.cs Normal file
View file

@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace API.Entities
{
public class Volume
{
public string Number { get; set; }
public ICollection<string> Files { get; set; }
// Many-to-Many relationships
public Series Series { get; set; }
public int SeriesId { get; set; }
}
}