aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Chapter.cs
blob: 579442cdb6d32cdc8bb66aec70d6112dca227ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;

namespace Jellyfin.Data.Entities;

/// <summary>
/// The Chapter entity.
/// </summary>
public class Chapter
{
    /// <summary>
    /// Gets or Sets the <see cref="BaseItemEntity"/> reference id.
    /// </summary>
    public required Guid ItemId { get; set; }

    /// <summary>
    /// Gets or Sets the <see cref="BaseItemEntity"/> reference.
    /// </summary>
    public required BaseItemEntity Item { get; set; }

    /// <summary>
    /// Gets or Sets the chapters index in Item.
    /// </summary>
    public required int ChapterIndex { get; set; }

    /// <summary>
    /// Gets or Sets the position within the source file.
    /// </summary>
    public required long StartPositionTicks { get; set; }

    /// <summary>
    /// Gets or Sets the common name.
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// Gets or Sets the image path.
    /// </summary>
    public string? ImagePath { get; set; }

    /// <summary>
    /// Gets or Sets the time the image was last modified.
    /// </summary>
    public DateTime? ImageDateModified { get; set; }
}