Files
2023-02-22 11:08:17 +00:00

57 lines
1.5 KiB
C#

namespace JWLMerge.BackupFileServices.Models.DatabaseModels;
public class Bookmark
{
/// <summary>
/// The bookmark identifier.
/// </summary>
public int BookmarkId { get; set; }
/// <summary>
/// The location identifier.
/// Refers to Location.LocationId
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// The publication location identifier.
/// Refers to Location.LocationId (with Location.Type = 1)
/// </summary>
public int PublicationLocationId { get; set; }
/// <summary>
/// The slot in which the bookmark appears.
/// i.e. the zero-based order in which it is listed in the UI.
/// </summary>
public int Slot { get; set; }
/// <summary>
/// The title text.
/// </summary>
public string Title { get; set; } = null!;
/// <summary>
/// A snippet of the bookmarked text (can be null)
/// </summary>
public string? Snippet { get; set; }
/// <summary>
/// The block type. Compare Locations.cs > BlockType
/// 0 = Publication 'page' (e.g. a song in the song book)
/// 1 = Publication paragraph
/// 2 = Bible verse
/// </summary>
public int BlockType { get; set; }
/// <summary>
/// The block identifier.
/// The paragraph or verse identifier.
/// i.e. the one-based paragraph (or verse if a Bible chapter) within the document.
/// </summary>
public int? BlockIdentifier { get; set; }
public Bookmark Clone()
{
return (Bookmark)MemberwiseClone();
}
}