The Free Software Media System - Server Backend & API
add EndPointInfo class
Luke Pulverenti18a6cd629c08
diff --git a/MediaBrowser.Api/System/SystemService.cs b/MediaBrowser.Api/System/SystemService.csindex 9b6b6a7d69..2661c245fa 100644--- a/MediaBrowser.Api/System/SystemService.cs+++ b/MediaBrowser.Api/System/SystemService.cs@@ -13,6 +13,7 @@ using System.IO;using System.Linq;using System.Threading.Tasks;using CommonIO;+using MediaBrowser.Model.Net;namespace MediaBrowser.Api.System{@@ -65,7 +66,7 @@ namespace MediaBrowser.Api.System[Route("/System/Endpoint", "GET", Summary = "Gets information about the request endpoint")][Authenticated]- public class GetEndpointInfo : IReturn<EndpointInfo>+ public class GetEndpointInfo : IReturn<EndPointInfo>{public string Endpoint { get; set; }}@@ -210,17 +211,11 @@ namespace MediaBrowser.Api.Systempublic object Get(GetEndpointInfo request){- return ToOptimizedResult(new EndpointInfo+ return ToOptimizedResult(new EndPointInfo{IsLocal = Request.IsLocal,IsInNetwork = _network.IsInLocalNetwork(request.Endpoint ?? Request.RemoteIp)});}}-- public class EndpointInfo- {- public bool IsLocal { get; set; }- public bool IsInNetwork { get; set; }- }}diff --git a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csprojindex 6145983e26..b8c64b6431 100644--- a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj+++ b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj@@ -827,6 +827,9 @@<Compile Include="..\MediaBrowser.Model\MediaInfo\VideoCodec.cs"><Link>MediaInfo\VideoCodec.cs</Link></Compile>+ <Compile Include="..\MediaBrowser.Model\Net\EndPointInfo.cs">+ <Link>Net\EndPointInfo.cs</Link>+ </Compile><Compile Include="..\MediaBrowser.Model\Net\HttpException.cs"><Link>Net\HttpException.cs</Link></Compile>diff --git a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csprojindex 435c4f50b4..e74468effd 100644--- a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj+++ b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj@@ -783,6 +783,9 @@<Compile Include="..\MediaBrowser.Model\MediaInfo\VideoCodec.cs"><Link>MediaInfo\VideoCodec.cs</Link></Compile>+ <Compile Include="..\MediaBrowser.Model\Net\EndPointInfo.cs">+ <Link>Net\EndPointInfo.cs</Link>+ </Compile><Compile Include="..\MediaBrowser.Model\Net\HttpException.cs"><Link>Net\HttpException.cs</Link></Compile>diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csprojindex 3664175d8e..db278baa14 100644--- a/MediaBrowser.Model/MediaBrowser.Model.csproj+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj@@ -162,6 +162,7 @@<Compile Include="MediaInfo\MediaProtocol.cs" /><Compile Include="MediaInfo\SubtitleTrackEvent.cs" /><Compile Include="MediaInfo\SubtitleTrackInfo.cs" />+ <Compile Include="Net\EndPointInfo.cs" /><Compile Include="Net\HttpResponse.cs" /><Compile Include="Net\MimeTypes.cs" /><Compile Include="Notifications\NotificationOption.cs" />diff --git a/MediaBrowser.Model/Net/EndPointInfo.cs b/MediaBrowser.Model/Net/EndPointInfo.csnew file mode 100644index 0000000000..5a158e7859--- /dev/null+++ b/MediaBrowser.Model/Net/EndPointInfo.cs@@ -0,0 +1,8 @@+namespace MediaBrowser.Model.Net+{+ public class EndPointInfo+ {+ public bool IsLocal { get; set; }+ public bool IsInNetwork { get; set; }+ }+}