GeneralCommand.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Session
  4. {
  5. public class GeneralCommand
  6. {
  7. public string Name { get; set; }
  8. public string ControllingUserId { get; set; }
  9. public Dictionary<string, string> Arguments { get; set; }
  10. public GeneralCommand()
  11. {
  12. Arguments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  13. }
  14. }
  15. /// <summary>
  16. /// This exists simply to identify a set of known commands.
  17. /// </summary>
  18. public enum GeneralCommandType
  19. {
  20. MoveUp = 0,
  21. MoveDown = 1,
  22. MoveLeft = 2,
  23. MoveRight = 3,
  24. PageUp = 4,
  25. PageDown = 5,
  26. PreviousLetter = 6,
  27. NextLetter = 7,
  28. ToggleOsd = 8,
  29. ToggleContextMenu = 9,
  30. Select = 10,
  31. Back = 11,
  32. TakeScreenshot = 12,
  33. SendKey = 13,
  34. SendString = 14,
  35. GoHome = 15,
  36. GoToSettings = 16,
  37. VolumeUp = 17,
  38. VolumeDown = 18,
  39. Mute = 19,
  40. Unmute = 20,
  41. ToggleMute = 21,
  42. SetVolume = 22,
  43. SetAudioStreamIndex = 23,
  44. SetSubtitleStreamIndex = 24,
  45. ToggleFullscreen = 25,
  46. DisplayContent = 26
  47. }
  48. }