aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/MediaSegments/MediaSegmentDto.cs
blob: d9129c395739d9e89864cc5528b05e0a4f27ef2d (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
using System;
using System.ComponentModel;
using Jellyfin.Database.Implementations.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>
    [DefaultValue(MediaSegmentType.Unknown)]
    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; }
}