diff options
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IApiClient.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IServerEvents.cs | 5 | ||||
| -rw-r--r-- | MediaBrowser.Model/ApiClient/ServerEventArgs.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 3 | ||||
| -rw-r--r-- | MediaBrowser.Model/Session/GeneralCommand.cs (renamed from MediaBrowser.Model/Session/GenericCommand.cs) | 6 | ||||
| -rw-r--r-- | MediaBrowser.Model/Session/SystemCommand.cs | 14 | ||||
| -rw-r--r-- | MediaBrowser.Model/System/SystemInfo.cs | 6 |
7 files changed, 16 insertions, 32 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 28c5822e9..dc5e26be3 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -593,17 +593,9 @@ namespace MediaBrowser.Model.ApiClient /// Sends the command asynchronous. /// </summary> /// <param name="sessionId">The session identifier.</param> - /// <param name="request">The request.</param> - /// <returns>Task.</returns> - Task SendCommandAsync(string sessionId, GenericCommand request); - - /// <summary> - /// Sends a system command to the client - /// </summary> - /// <param name="sessionId">The session id.</param> /// <param name="command">The command.</param> /// <returns>Task.</returns> - Task SendSystemCommandAsync(string sessionId, SystemCommand command); + Task SendCommandAsync(string sessionId, GeneralCommand command); /// <summary> /// Instructs the client to display a message to the user diff --git a/MediaBrowser.Model/ApiClient/IServerEvents.cs b/MediaBrowser.Model/ApiClient/IServerEvents.cs index 0a38c63ad..63135baa2 100644 --- a/MediaBrowser.Model/ApiClient/IServerEvents.cs +++ b/MediaBrowser.Model/ApiClient/IServerEvents.cs @@ -1,4 +1,5 @@ -using System; +using MediaBrowser.Model.Session; +using System; namespace MediaBrowser.Model.ApiClient { @@ -66,7 +67,7 @@ namespace MediaBrowser.Model.ApiClient /// <summary> /// Occurs when [system command]. /// </summary> - event EventHandler<SystemCommandEventArgs> SystemCommand; + event EventHandler<GeneralCommandEventArgs> GeneralCommand; /// <summary> /// Occurs when [notification added]. /// </summary> diff --git a/MediaBrowser.Model/ApiClient/ServerEventArgs.cs b/MediaBrowser.Model/ApiClient/ServerEventArgs.cs index d3212caf4..b7f709e95 100644 --- a/MediaBrowser.Model/ApiClient/ServerEventArgs.cs +++ b/MediaBrowser.Model/ApiClient/ServerEventArgs.cs @@ -152,13 +152,13 @@ namespace MediaBrowser.Model.ApiClient /// <summary> /// Class SystemCommandEventArgs /// </summary> - public class SystemCommandEventArgs : EventArgs + public class GeneralCommandEventArgs : EventArgs { /// <summary> /// Gets or sets the command. /// </summary> /// <value>The command.</value> - public SystemCommand Command { get; set; } + public GeneralCommand Command { get; set; } } /// <summary> diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 207543fe8..0859f6999 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -132,7 +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\GeneralCommand.cs" /> <Compile Include="Session\MessageCommand.cs" /> <Compile Include="Session\PlaybackReports.cs" /> <Compile Include="Session\PlayRequest.cs" /> @@ -171,7 +171,6 @@ <Compile Include="Serialization\IXmlSerializer.cs" /> <Compile Include="Session\SessionCapabilities.cs" /> <Compile Include="Session\SessionInfoDto.cs" /> - <Compile Include="Session\SystemCommand.cs" /> <Compile Include="Session\UserDataChangeInfo.cs" /> <Compile Include="Themes\AppTheme.cs" /> <Compile Include="Themes\ThemeImage.cs" /> diff --git a/MediaBrowser.Model/Session/GenericCommand.cs b/MediaBrowser.Model/Session/GeneralCommand.cs index f7ea0a84a..0de7d6dd8 100644 --- a/MediaBrowser.Model/Session/GenericCommand.cs +++ b/MediaBrowser.Model/Session/GeneralCommand.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; namespace MediaBrowser.Model.Session { - public class GenericCommand + public class GeneralCommand { public string Name { get; set; } @@ -11,7 +11,7 @@ namespace MediaBrowser.Model.Session public Dictionary<string, string> Arguments { get; set; } - public GenericCommand() + public GeneralCommand() { Arguments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); } @@ -20,7 +20,7 @@ namespace MediaBrowser.Model.Session /// <summary> /// This exists simply to identify a set of known commands. /// </summary> - public enum CoreGenericCommand + public enum GeneralCommandType { MoveUp = 0, MoveDown = 1, diff --git a/MediaBrowser.Model/Session/SystemCommand.cs b/MediaBrowser.Model/Session/SystemCommand.cs deleted file mode 100644 index 2fcaef6e3..000000000 --- a/MediaBrowser.Model/Session/SystemCommand.cs +++ /dev/null @@ -1,14 +0,0 @@ - -namespace MediaBrowser.Model.Session -{ - public enum SystemCommand - { - GoHome, - GoToSettings, - VolumeUp, - VolumeDown, - Mute, - Unmute, - ToggleMute - } -} diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs index ec31c5529..5b1e7d6bb 100644 --- a/MediaBrowser.Model/System/SystemInfo.cs +++ b/MediaBrowser.Model/System/SystemInfo.cs @@ -117,6 +117,12 @@ namespace MediaBrowser.Model.System public string LogPath { get; set; } /// <summary> + /// Gets or sets the internal metadata path. + /// </summary> + /// <value>The internal metadata path.</value> + public string InternalMetadataPath { get; set; } + + /// <summary> /// Gets or sets the transcoding temporary path. /// </summary> /// <value>The transcoding temporary path.</value> |
