mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-01 04:34:49 -04:00
* ImageService had a stream reset before writting out to array. Added logging statment for updating series metadata. Removed ConcurencyCheck due to bad update issue for CollectionTag. * Added a new screen which lets you quickly see all your bookmarks for a given user. * Built user bookmark page in user settings. Moved user settings to it's own lazy loaded module. Removed unneded debouncing from downloader and just used throttleTime instead. * Removed a not-yet implemented tab from series modal * Fixed a bug in clear bookmarks and adjusted icons within anchors to have proper styling
59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Interfaces;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Entities
|
|
{
|
|
/// <summary>
|
|
/// Represents a user entered field that is used as a tagging and grouping mechanism
|
|
/// </summary>
|
|
[Index(nameof(Id), nameof(Promoted), IsUnique = true)]
|
|
public class CollectionTag
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// Visible title of the Tag
|
|
/// </summary>
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// Cover Image for the collection tag
|
|
/// </summary>
|
|
public byte[] CoverImage { get; set; }
|
|
/// <summary>
|
|
/// Denotes if the CoverImage has been overridden by the user. If so, it will not be updated during normal scan operations.
|
|
/// </summary>
|
|
public bool CoverImageLocked { get; set; }
|
|
|
|
/// <summary>
|
|
/// A description of the tag
|
|
/// </summary>
|
|
public string Summary { get; set; }
|
|
|
|
/// <summary>
|
|
/// A normalized string used to check if the tag already exists in the DB
|
|
/// </summary>
|
|
public string NormalizedTitle { get; set; }
|
|
/// <summary>
|
|
/// A promoted collection tag will allow all linked seriesMetadata's Series to show for all users.
|
|
/// </summary>
|
|
public bool Promoted { get; set; }
|
|
|
|
public ICollection<SeriesMetadata> SeriesMetadatas { get; set; }
|
|
|
|
/// <summary>
|
|
/// Not Used due to not using concurrency update
|
|
/// </summary>
|
|
public uint RowVersion { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Not Used due to not using concurrency update
|
|
/// </summary>
|
|
public void OnSavingChanges()
|
|
{
|
|
RowVersion++;
|
|
}
|
|
}
|
|
}
|