mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 10:40:24 +01:00
update power management
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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" />
|
||||
|
||||
15
MediaBrowser.Model/Social/ISharingRepository.cs
Normal file
15
MediaBrowser.Model/Social/ISharingRepository.cs
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
9
MediaBrowser.Model/System/IPowerManagement.cs
Normal file
9
MediaBrowser.Model/System/IPowerManagement.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace MediaBrowser.Model.System
|
||||
{
|
||||
public interface IPowerManagement
|
||||
{
|
||||
void PreventSystemStandby();
|
||||
void AllowSystemStandby();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user