aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs
blob: 7482607fff0150d3547cb6eac792e93b9d757a9f (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
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;

namespace MediaBrowser.Controller.Library
{
    /// <summary>
    /// Holds information about a playback progress event
    /// </summary>
    public class PlaybackProgressEventArgs : EventArgs
    {
        public List<User> Users { get; set; }
        public long? PlaybackPositionTicks { get; set; }
        public BaseItem Item { get; set; }
        public BaseItemInfo MediaInfo { get; set; }
        public string MediaSourceId { get; set; }

        public string DeviceName { get; set; }
        public string ClientName { get; set; }

        public PlaybackProgressEventArgs()
        {
            Users = new List<User>();
        }
    }

    public class PlaybackStopEventArgs : PlaybackProgressEventArgs
    {
        /// <summary>
        /// Gets or sets a value indicating whether [played to completion].
        /// </summary>
        /// <value><c>true</c> if [played to completion]; otherwise, <c>false</c>.</value>
        public bool PlayedToCompletion { get; set; }
    }
}