aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs11
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj1
-rw-r--r--MediaBrowser.Model/Social/ISharingRepository.cs15
-rw-r--r--MediaBrowser.Model/System/IPowerManagement.cs9
4 files changed, 32 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index b1e52dc7b6..9715a624fb 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -8,6 +8,9 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
public class ServerConfiguration : BaseApplicationConfiguration
{
+ public const int DefaultHttpPort = 8096;
+ public const int DefaultHttpsPort = 8920;
+
/// <summary>
/// Gets or sets a value indicating whether [enable u pn p].
/// </summary>
@@ -225,10 +228,10 @@ namespace MediaBrowser.Model.Configuration
EnableExternalContentInSuggestions = true;
ImageSavingConvention = ImageSavingConvention.Compatible;
- PublicPort = 8096;
- PublicHttpsPort = 8920;
- HttpServerPortNumber = 8096;
- HttpsPortNumber = 8920;
+ PublicPort = DefaultHttpPort;
+ PublicHttpsPort = DefaultHttpsPort;
+ HttpServerPortNumber = DefaultHttpPort;
+ HttpsPortNumber = DefaultHttpsPort;
EnableHttps = false;
EnableDashboardResponseCaching = true;
EnableDashboardResourceMinification = true;
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index abf07e1dce..64472ca3a2 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -145,6 +145,7 @@
<Compile Include="Services\IHttpResult.cs" />
<Compile Include="Social\ISharingRepository.cs" />
<Compile Include="System\IEnvironmentInfo.cs" />
+ <Compile Include="System\IPowerManagement.cs" />
<Compile Include="Text\ITextEncoding.cs" />
<Compile Include="Extensions\LinqExtensions.cs" />
<Compile Include="FileOrganization\SmartMatchInfo.cs" />
diff --git a/MediaBrowser.Model/Social/ISharingRepository.cs b/MediaBrowser.Model/Social/ISharingRepository.cs
new file mode 100644
index 0000000000..069b6e1fe2
--- /dev/null
+++ b/MediaBrowser.Model/Social/ISharingRepository.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MediaBrowser.Model.Social
+{
+ public interface ISharingRepository
+ {
+ Task CreateShare(SocialShareInfo info);
+ Task DeleteShare(string id);
+ SocialShareInfo GetShareInfo(string id);
+ }
+}
diff --git a/MediaBrowser.Model/System/IPowerManagement.cs b/MediaBrowser.Model/System/IPowerManagement.cs
new file mode 100644
index 0000000000..91cae0d3e4
--- /dev/null
+++ b/MediaBrowser.Model/System/IPowerManagement.cs
@@ -0,0 +1,9 @@
+
+namespace MediaBrowser.Model.System
+{
+ public interface IPowerManagement
+ {
+ void PreventSystemStandby();
+ void AllowSystemStandby();
+ }
+}