aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs
blob: b0a6782c777fdf945088c93f5d32d66d76dbc73b (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
45
46
47
48
#nullable disable

#pragma warning disable CA1002, CA2227, CS1591

using System;
using System.Collections.Generic;
using Jellyfin.Database.Implementations.Entities;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Dto;

namespace MediaBrowser.Controller.Library
{
    /// <summary>
    /// Holds information about a playback progress event.
    /// </summary>
    public class PlaybackProgressEventArgs : EventArgs
    {
        public PlaybackProgressEventArgs()
        {
            Users = new List<User>();
        }

        public List<User> Users { get; set; }

        public long? PlaybackPositionTicks { get; set; }

        public BaseItem Item { get; set; }

        public BaseItemDto MediaInfo { get; set; }

        public string MediaSourceId { get; set; }

        public bool IsPaused { get; set; }

        public bool IsAutomated { get; set; }

        public string DeviceId { get; set; }

        public string DeviceName { get; set; }

        public string ClientName { get; set; }

        public string PlaySessionId { get; set; }

        public SessionInfo Session { get; set; }
    }
}