jellyfin-server/MediaBrowser.Model/Session/GeneralCommand.cs

54 lines
1.2 KiB
C#
Raw Normal View History

2014-03-28 19:58:18 +00:00
using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.Session
{
2014-03-31 21:04:22 +00:00
public class GeneralCommand
2014-03-28 19:58:18 +00:00
{
public string Name { get; set; }
2014-03-28 20:36:29 +00:00
public string ControllingUserId { get; set; }
2014-03-28 19:58:18 +00:00
public Dictionary<string, string> Arguments { get; set; }
2014-03-31 21:04:22 +00:00
public GeneralCommand()
2014-03-28 19:58:18 +00:00
{
Arguments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
}
}
2014-03-28 20:36:29 +00:00
/// <summary>
/// This exists simply to identify a set of known commands.
/// </summary>
2014-03-31 21:04:22 +00:00
public enum GeneralCommandType
2014-03-28 19:58:18 +00:00
{
MoveUp = 0,
MoveDown = 1,
MoveLeft = 2,
MoveRight = 3,
PageUp = 4,
PageDown = 5,
PreviousLetter = 6,
NextLetter = 7,
ToggleOsd = 8,
ToggleContextMenu = 9,
Select = 10,
Back = 11,
TakeScreenshot = 12,
SendKey = 13,
SendString = 14,
GoHome = 15,
GoToSettings = 16,
VolumeUp = 17,
VolumeDown = 18,
Mute = 19,
Unmute = 20,
2014-04-06 17:53:23 +00:00
ToggleMute = 21,
SetVolume = 22,
SetAudioStreamIndex = 23,
SetSubtitleStreamIndex = 24,
2014-04-13 17:27:13 +00:00
ToggleFullscreen = 25,
DisplayContent = 26
2014-03-28 19:58:18 +00:00
}
}