aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/MediaSegments/MediaSegmentDto.cs
blob: a0433fee187167a0bc57c186683f2b474616d38b (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
using System;
using Jellyfin.Data.Enums;

namespace MediaBrowser.Model.MediaSegments;

/// <summary>
/// Api model for MediaSegment's.
/// </summary>
public class MediaSegmentDto
{
    /// <summary>
    /// Gets or sets the id of the media segment.
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// Gets or sets the id of the associated item.
    /// </summary>
    public Guid ItemId { get; set; }

    /// <summary>
    /// Gets or sets the type of content this segment defines.
    /// </summary>
    public MediaSegmentType Type { get; set; }

    /// <summary>
    /// Gets or sets the start of the segment.
    /// </summary>
    public long StartTicks { get; set; }

    /// <summary>
    /// Gets or sets the end of the segment.
    /// </summary>
    public long EndTicks { get; set; }
}