mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 04:51:54 +00:00
added generic remote control commands
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
<Compile Include="Querying\UserQuery.cs" />
|
||||
<Compile Include="Search\SearchQuery.cs" />
|
||||
<Compile Include="Session\BrowseRequest.cs" />
|
||||
<Compile Include="Session\GenericCommand.cs" />
|
||||
<Compile Include="Session\MessageCommand.cs" />
|
||||
<Compile Include="Session\PlaybackReports.cs" />
|
||||
<Compile Include="Session\PlayRequest.cs" />
|
||||
|
||||
43
MediaBrowser.Model/Session/GenericCommand.cs
Normal file
43
MediaBrowser.Model/Session/GenericCommand.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class GenericCommand
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public Dictionary<string, string> Arguments { get; set; }
|
||||
|
||||
public GenericCommand()
|
||||
{
|
||||
Arguments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
public enum CoreGenericCommand
|
||||
{
|
||||
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,
|
||||
ToggleMute = 21
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,15 @@ namespace MediaBrowser.Model.Session
|
||||
/// <summary>
|
||||
/// The fullscreen
|
||||
/// </summary>
|
||||
Fullscreen
|
||||
Fullscreen,
|
||||
/// <summary>
|
||||
/// The rewind
|
||||
/// </summary>
|
||||
Rewind,
|
||||
/// <summary>
|
||||
/// The fast forward
|
||||
/// </summary>
|
||||
FastForward
|
||||
}
|
||||
|
||||
public class PlaystateRequest
|
||||
|
||||
Reference in New Issue
Block a user