mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-19 21:44:16 -04:00
* Fixed inputs not showing inline validation due to a missing class * Fixed some checks * Increased the button size on manga reader (develop) * Migrated a type cast to a pure pipe * Sped up the check for if SendTo should render on the menu * Don't allow user to bookmark in bookmark mode * Fixed a bug where Scan Series would skip over Specials due to how new scan loop works. * Fixed scroll to top button persisting when navigating between pages * Edit Series modal now doesn't have a lock field for Series, which can't be locked as it is inheritently locked. Added some validation to ensure Name and SortName are required. * Fixed up some spacing * Fixed actionable menu not opening submenu on mobile * Cleaned up the layout of cover image on series detail * Show all volume or chapters (if only one volume) for cover selection on series * Don't open submenu to right if there is no space * Fixed up cover image not allowing custom saves of existing series/chapter/volume images. Fixed up logging so console output matches log file. * Implemented the ability to turn off css transitions in the UI. * Updated a note internally * Code smells * Added InstallId when pinging the email service to allow throughput tracking
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Net;
|
|
using API.Entities.Enums.Device;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.Entities;
|
|
|
|
/// <summary>
|
|
/// A Device is an entity that can receive data from Kavita (kindle)
|
|
/// </summary>
|
|
public class Device : IEntityDate
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// Last Seen IP Address of the device
|
|
/// </summary>
|
|
public string IpAddress { 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; }
|
|
/// <summary>
|
|
/// An email address associated with the device (ie Kindle). Will be used with Send to functionality
|
|
/// </summary>
|
|
public string EmailAddress { get; set; }
|
|
/// <summary>
|
|
/// Platform (ie) Windows 10
|
|
/// </summary>
|
|
public DevicePlatform Platform { get; set; }
|
|
|
|
public int AppUserId { get; set; }
|
|
public AppUser AppUser { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Last time this device was used to send a file
|
|
/// </summary>
|
|
public DateTime LastUsed { get; set; }
|
|
public DateTime Created { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
}
|