diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 14:44:18 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 14:44:18 -0400 |
| commit | 48ba276d83bb539da298433789229b1f8c66a2c1 (patch) | |
| tree | 597622e8ee4a82f73d13b15a75e89d58731b8048 | |
| parent | 77699c5bf753a50ce95d9834509d53eba70f05d9 (diff) | |
add dlna classes
| -rw-r--r-- | MediaBrowser.Model/Dlna/IDeviceDiscovery.cs | 11 | ||||
| -rw-r--r-- | MediaBrowser.Model/Dlna/UpnpDeviceInfo.cs | 14 | ||||
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 2 |
3 files changed, 27 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Dlna/IDeviceDiscovery.cs b/MediaBrowser.Model/Dlna/IDeviceDiscovery.cs new file mode 100644 index 0000000000..70191ff23c --- /dev/null +++ b/MediaBrowser.Model/Dlna/IDeviceDiscovery.cs @@ -0,0 +1,11 @@ +using System; +using MediaBrowser.Model.Events; + +namespace MediaBrowser.Model.Dlna +{ + public interface IDeviceDiscovery + { + event EventHandler<GenericEventArgs<UpnpDeviceInfo>> DeviceDiscovered; + event EventHandler<GenericEventArgs<UpnpDeviceInfo>> DeviceLeft; + } +} diff --git a/MediaBrowser.Model/Dlna/UpnpDeviceInfo.cs b/MediaBrowser.Model/Dlna/UpnpDeviceInfo.cs new file mode 100644 index 0000000000..f4b9d1e9bc --- /dev/null +++ b/MediaBrowser.Model/Dlna/UpnpDeviceInfo.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using MediaBrowser.Model.Net; + +namespace MediaBrowser.Model.Dlna +{ + public class UpnpDeviceInfo + { + public Uri Location { get; set; } + public Dictionary<string, string> Headers { get; set; } + public IpAddressInfo LocalIpAddress { get; set; } + public int LocalPort { get; set; } + } +} diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 75669b44f6..cc88fe1c7b 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -112,6 +112,7 @@ <Compile Include="Dlna\DirectPlayProfile.cs" /> <Compile Include="Dlna\EncodingContext.cs" /> <Compile Include="Dlna\HttpHeaderInfo.cs" /> + <Compile Include="Dlna\IDeviceDiscovery.cs" /> <Compile Include="Dlna\ITranscoderSupport.cs" /> <Compile Include="Dlna\ProfileCondition.cs" /> <Compile Include="Dlna\ResponseProfile.cs" /> @@ -125,6 +126,7 @@ <Compile Include="Dlna\SubtitleProfile.cs" /> <Compile Include="Dlna\SubtitleStreamInfo.cs" /> <Compile Include="Dlna\TranscodingProfile.cs" /> + <Compile Include="Dlna\UpnpDeviceInfo.cs" /> <Compile Include="Dlna\XmlAttribute.cs" /> <Compile Include="Drawing\ImageOrientation.cs" /> <Compile Include="Dto\IHasServerId.cs" /> |
