mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-03 13:44:31 -04:00
* Implemented a Want To Read list of series for all users, as a way to keep track of what you want to read. When canceling a bulk action, like Add to Reading list, the selected cards wont de-select. * Hooked up Remove from Want to Read * When making bulk selection, allow the user to click on anywhere on the card * Added no series messaging * Code cleanup
50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Interfaces;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
|
|
namespace API.Entities
|
|
{
|
|
public class AppUser : IdentityUser<int>, IHasConcurrencyToken
|
|
{
|
|
public DateTime Created { get; set; } = DateTime.Now;
|
|
public DateTime LastActive { get; set; }
|
|
public ICollection<Library> Libraries { get; set; }
|
|
public ICollection<AppUserRole> UserRoles { get; set; }
|
|
public ICollection<AppUserProgress> Progresses { get; set; }
|
|
public ICollection<AppUserRating> Ratings { get; set; }
|
|
public AppUserPreferences UserPreferences { get; set; }
|
|
public ICollection<AppUserBookmark> Bookmarks { get; set; }
|
|
/// <summary>
|
|
/// Reading lists associated with this user
|
|
/// </summary>
|
|
public ICollection<ReadingList> ReadingLists { get; set; }
|
|
/// <summary>
|
|
/// A list of Series the user want's to read
|
|
/// </summary>
|
|
public ICollection<Series> WantToRead { get; set; }
|
|
/// <summary>
|
|
/// An API Key to interact with external services, like OPDS
|
|
/// </summary>
|
|
public string ApiKey { get; set; }
|
|
/// <summary>
|
|
/// The confirmation token for the user (invite). This will be set to null after the user confirms.
|
|
/// </summary>
|
|
public string ConfirmationToken { get; set; }
|
|
|
|
|
|
/// <inheritdoc />
|
|
[ConcurrencyCheck]
|
|
public uint RowVersion { get; private set; }
|
|
|
|
/// <inheritdoc />
|
|
public void OnSavingChanges()
|
|
{
|
|
RowVersion++;
|
|
}
|
|
|
|
}
|
|
}
|