mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 22:35:17 -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,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Entities.Enums.Device;
|
||||
|
||||
namespace API.DTOs.Device.EmailDevice;
|
||||
|
||||
public sealed record CreateEmailDeviceDto
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// Platform of the device. If not know, defaults to "Custom"
|
||||
/// </summary>
|
||||
[Required]
|
||||
public EmailDevicePlatform Platform { get; set; }
|
||||
[Required]
|
||||
public string EmailAddress { get; set; } = default!;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using API.Entities.Enums.Device;
|
||||
|
||||
namespace API.DTOs.Device.EmailDevice;
|
||||
|
||||
/// <summary>
|
||||
/// A Device is an entity that can receive data from Kavita (kindle)
|
||||
/// </summary>
|
||||
public sealed record EmailDeviceDto
|
||||
{
|
||||
/// <summary>
|
||||
/// The device Id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// A name given to this device
|
||||
/// </summary>
|
||||
/// <remarks>If this device is web, this will be the browser name</remarks>
|
||||
/// <example>Pixel 3a, John's Kindle</example>
|
||||
public string Name { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// An email address associated with the device (ie Kindle). Will be used with Send to functionality
|
||||
/// </summary>
|
||||
public string EmailAddress { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// Platform (ie) Windows 10
|
||||
/// </summary>
|
||||
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; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace API.DTOs.Device.EmailDevice;
|
||||
|
||||
public sealed record SendToEmailDeviceDto
|
||||
{
|
||||
public int DeviceId { get; set; }
|
||||
public IReadOnlyList<int> ChapterIds { get; set; } = default!;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Entities.Enums.Device;
|
||||
|
||||
namespace API.DTOs.Device.EmailDevice;
|
||||
|
||||
public sealed record UpdateEmailDeviceDto
|
||||
{
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// Platform of the device. If not know, defaults to "Custom"
|
||||
/// </summary>
|
||||
[Required]
|
||||
public EmailDevicePlatform Platform { get; set; }
|
||||
[Required]
|
||||
public string EmailAddress { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user