First go
will add comments in draft pull request
This commit is contained in:
parent
2fb72ab0d4
commit
d77090beff
23 changed files with 3570 additions and 67 deletions
37
API/Entities/EpubFont.cs
Normal file
37
API/Entities/EpubFont.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using API.Entities.Enums.Font;
|
||||
using API.Entities.Interfaces;
|
||||
using API.Services;
|
||||
|
||||
namespace API.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a user provider font to be used in the epub reader
|
||||
/// </summary>
|
||||
public class EpubFont: IEntityDate
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the font
|
||||
/// </summary>
|
||||
public required string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Normalized name for lookups
|
||||
/// </summary>
|
||||
public required string NormalizedName { get; set; }
|
||||
/// <summary>
|
||||
/// Filename of the font, stored under <see cref="DirectoryService.EpubFontDirectory"/>
|
||||
/// </summary>
|
||||
/// <remarks>System provided fonts use an alternative location as they are packaged with the app</remarks>
|
||||
public required string FileName { get; set; }
|
||||
/// <summary>
|
||||
/// Where the font came from
|
||||
/// </summary>
|
||||
public FontProvider Provider { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue