aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/KeyframeData.cs
blob: c34110c4f213adcf37a9af9b6888538dd25a1cc2 (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
#pragma warning disable CA2227 // Collection properties should be read only

using System;
using System.Collections.Generic;

namespace Jellyfin.Database.Implementations.Entities;

/// <summary>
/// Keyframe information for a specific file.
/// </summary>
public class KeyframeData
{
    /// <summary>
    /// Gets or Sets the ItemId.
    /// </summary>
    public required Guid ItemId { get; set; }

    /// <summary>
    /// Gets or sets the total duration of the stream in ticks.
    /// </summary>
    public long TotalDuration { get; set; }

    /// <summary>
    /// Gets or sets the keyframes in ticks.
    /// </summary>
    public ICollection<long>? KeyframeTicks { get; set; }

    /// <summary>
    /// Gets or sets the item reference.
    /// </summary>
    public BaseItemEntity? Item { get; set; }
}