aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session/PlaystateRequest.cs
blob: 78551060ff5cb9f537ef094d6ba4ce8fd0d8eeeb (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
52
53
namespace MediaBrowser.Model.Session
{
    /// <summary>
    /// Class PlaystateRequest
    /// </summary>
    public class PlaystateRequest
    {
        /// <summary>
        /// Gets or sets the command.
        /// </summary>
        /// <value>The command.</value>
        public PlaystateCommand Command { get; set; }

        /// <summary>
        /// Gets or sets the seek position.
        /// Only applicable to seek commands.
        /// </summary>
        /// <value>The seek position.</value>
        public long? SeekPosition { get; set; }
    }

    /// <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
    }
}