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/Collection/MalStackDto.cs
Normal file
19
API/DTOs/Collection/MalStackDto.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
namespace API.DTOs.Collection;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an Interest Stack from MAL
|
||||
/// </summary>
|
||||
public class MalStackDto
|
||||
{
|
||||
public required string Title { get; set; }
|
||||
public required long StackId { get; set; }
|
||||
public required string Url { get; set; }
|
||||
public required string? Author { get; set; }
|
||||
public required int SeriesCount { get; set; }
|
||||
public required int RestackCount { get; set; }
|
||||
/// <summary>
|
||||
/// If an existing collection exists within Kavita
|
||||
/// </summary>
|
||||
/// <remarks>This is filled out from Kavita and not Kavita+</remarks>
|
||||
public int ExistingId { get; set; }
|
||||
}
|
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; }
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs;
|
||||
namespace API.DTOs.Progress;
|
||||
#nullable enable
|
||||
|
||||
public class ProgressDto
|
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; }
|
||||
}
|
13
API/DTOs/Scrobbling/MalUserInfoDto.cs
Normal file
13
API/DTOs/Scrobbling/MalUserInfoDto.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
namespace API.DTOs.Scrobbling;
|
||||
|
||||
/// <summary>
|
||||
/// Information about a User's MAL connection
|
||||
/// </summary>
|
||||
public class MalUserInfoDto
|
||||
{
|
||||
public required string Username { get; set; }
|
||||
/// <summary>
|
||||
/// This is actually the Client Id
|
||||
/// </summary>
|
||||
public required string AccessToken { get; set; }
|
||||
}
|
17
API/DTOs/Statistics/KavitaPlusMetadataBreakdownDto.cs
Normal file
17
API/DTOs/Statistics/KavitaPlusMetadataBreakdownDto.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace API.DTOs.Statistics;
|
||||
|
||||
public class KavitaPlusMetadataBreakdownDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Total amount of Series
|
||||
/// </summary>
|
||||
public int TotalSeries { get; set; }
|
||||
/// <summary>
|
||||
/// Series on the Blacklist (errored or bad match)
|
||||
/// </summary>
|
||||
public int ErroredSeries { get; set; }
|
||||
/// <summary>
|
||||
/// Completed so far
|
||||
/// </summary>
|
||||
public int SeriesCompleted { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue