mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-26 17:42:34 -04:00
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:
@@ -0,0 +1,7 @@
|
||||
namespace API.DTOs.Device.ClientDevice;
|
||||
|
||||
public sealed record UpdateClientDeviceNameDto
|
||||
{
|
||||
public int DeviceId { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
+3
-3
@@ -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; }
|
||||
}
|
||||
+2
-2
@@ -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!;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace API.DTOs.Device;
|
||||
|
||||
public sealed record SendSeriesToDeviceDto
|
||||
{
|
||||
public int DeviceId { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user