Progress Overhaul + Profile Page and a LOT more! (#4262)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
Joe Milazzo
2025-12-09 10:00:11 -07:00
committed by GitHub
parent 4ac13f1f25
commit 9f29fa593d
645 changed files with 25585 additions and 4805 deletions
@@ -0,0 +1,7 @@
namespace API.DTOs.Device.ClientDevice;
public sealed record UpdateClientDeviceNameDto
{
public int DeviceId { get; set; }
public string Name { get; set; }
}
@@ -1,9 +1,9 @@
using System.ComponentModel.DataAnnotations;
using API.Entities.Enums.Device;
namespace API.DTOs.Device;
namespace API.DTOs.Device.EmailDevice;
public sealed record CreateDeviceDto
public sealed record CreateEmailDeviceDto
{
[Required]
public string Name { get; set; } = default!;
@@ -11,7 +11,7 @@ public sealed record CreateDeviceDto
/// Platform of the device. If not know, defaults to "Custom"
/// </summary>
[Required]
public DevicePlatform Platform { get; set; }
public EmailDevicePlatform Platform { get; set; }
[Required]
public string EmailAddress { get; set; } = default!;
@@ -1,12 +1,11 @@
using System;
using API.Entities.Enums.Device;
using API.Entities.Enums.Device;
namespace API.DTOs.Device;
namespace API.DTOs.Device.EmailDevice;
/// <summary>
/// A Device is an entity that can receive data from Kavita (kindle)
/// </summary>
public sealed record DeviceDto
public sealed record EmailDeviceDto
{
/// <summary>
/// The device Id
@@ -25,5 +24,5 @@ public sealed record DeviceDto
/// <summary>
/// Platform (ie) Windows 10
/// </summary>
public DevicePlatform Platform { get; set; }
public EmailDevicePlatform Platform { get; set; }
}
@@ -0,0 +1,7 @@
namespace API.DTOs.Device.EmailDevice;
public sealed record SendSeriesToEmailDeviceDto
{
public int DeviceId { get; set; }
public int SeriesId { get; set; }
}
@@ -1,8 +1,8 @@
using System.Collections.Generic;
namespace API.DTOs.Device;
namespace API.DTOs.Device.EmailDevice;
public sealed record SendToDeviceDto
public sealed record SendToEmailDeviceDto
{
public int DeviceId { get; set; }
public IReadOnlyList<int> ChapterIds { get; set; } = default!;
@@ -1,9 +1,9 @@
using System.ComponentModel.DataAnnotations;
using API.Entities.Enums.Device;
namespace API.DTOs.Device;
namespace API.DTOs.Device.EmailDevice;
public sealed record UpdateDeviceDto
public sealed record UpdateEmailDeviceDto
{
[Required]
public int Id { get; set; }
@@ -13,7 +13,7 @@ public sealed record UpdateDeviceDto
/// Platform of the device. If not know, defaults to "Custom"
/// </summary>
[Required]
public DevicePlatform Platform { get; set; }
public EmailDevicePlatform Platform { get; set; }
[Required]
public string EmailAddress { get; set; } = default!;
}
-7
View File
@@ -1,7 +0,0 @@
namespace API.DTOs.Device;
public sealed record SendSeriesToDeviceDto
{
public int DeviceId { get; set; }
public int SeriesId { get; set; }
}