aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session/PlaystateCommand.cs
blob: d83c6dae54e675dc4b0edf4400cca5d1d285d63c (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
49
50
51
namespace MediaBrowser.Model.Session
{
    /// <summary>
    /// Enum PlaystateCommand
    /// </summary>
    public enum PlaystateCommand
    {
        /// <summary>
        /// The stop
        /// </summary>
        Stop,
        /// <summary>
        /// The pause
        /// </summary>
        Pause,
        /// <summary>
        /// The unpause
        /// </summary>
        Unpause,
        /// <summary>
        /// The next track
        /// </summary>
        NextTrack,
        /// <summary>
        /// The previous track
        /// </summary>
        PreviousTrack,
        /// <summary>
        /// The seek
        /// </summary>
        Seek,
        /// <summary>
        /// The fullscreen
        /// </summary>
        Fullscreen
    }

    public class PlaystateRequest
    {
        public PlaystateCommand Command { get; set; }

        public long? SeekPositionTicks { get; set; }

        /// <summary>
        /// Gets or sets the controlling user identifier.
        /// </summary>
        /// <value>The controlling user identifier.</value>
        public string ControllingUserId { get; set; }
    }
}