Misc bunch of changes (#2815)
This commit is contained in:
parent
18792b7b56
commit
63c9bff32e
81 changed files with 4567 additions and 339 deletions
19
API/DTOs/Progress/FullProgressDto.cs
Normal file
19
API/DTOs/Progress/FullProgressDto.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.Progress;
|
||||
|
||||
/// <summary>
|
||||
/// A full progress Record from the DB (not all data, only what's needed for API)
|
||||
/// </summary>
|
||||
public class FullProgressDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ChapterId { get; set; }
|
||||
public int PagesRead { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public int AppUserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
}
|
26
API/DTOs/Progress/ProgressDto.cs
Normal file
26
API/DTOs/Progress/ProgressDto.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs.Progress;
|
||||
#nullable enable
|
||||
|
||||
public class ProgressDto
|
||||
{
|
||||
[Required]
|
||||
public int VolumeId { get; set; }
|
||||
[Required]
|
||||
public int ChapterId { get; set; }
|
||||
[Required]
|
||||
public int PageNum { get; set; }
|
||||
[Required]
|
||||
public int SeriesId { get; set; }
|
||||
[Required]
|
||||
public int LibraryId { get; set; }
|
||||
/// <summary>
|
||||
/// For EPUB reader, this can be an optional string of the id of a part marker, to help resume reading position
|
||||
/// on pages that combine multiple "chapters".
|
||||
/// </summary>
|
||||
public string? BookScrollId { get; set; }
|
||||
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
}
|
11
API/DTOs/Progress/UpdateUserProgressDto.cs
Normal file
11
API/DTOs/Progress/UpdateUserProgressDto.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.Progress;
|
||||
#nullable enable
|
||||
|
||||
public class UpdateUserProgressDto
|
||||
{
|
||||
public int PageNum { get; set; }
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue