diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-10 11:06:54 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-10 11:06:54 -0400 |
| commit | 3094868a83937d2f5c49b06abd53757ef304a7e2 (patch) | |
| tree | ed66b10daad8362000ea358e6d6f8f033d190a2b /MediaBrowser.Controller/Dlna | |
| parent | f657e2981cb928720eb728790697c0653cb7344f (diff) | |
beginning dlna server
Diffstat (limited to 'MediaBrowser.Controller/Dlna')
| -rw-r--r-- | MediaBrowser.Controller/Dlna/ControlRequest.cs | 28 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Dlna/IDlnaManager.cs | 22 |
2 files changed, 50 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Dlna/ControlRequest.cs b/MediaBrowser.Controller/Dlna/ControlRequest.cs new file mode 100644 index 0000000000..74e68b7d01 --- /dev/null +++ b/MediaBrowser.Controller/Dlna/ControlRequest.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Dlna +{ + public class ControlRequest + { + public IDictionary<string, string> Headers { get; set; } + + public string InputXml { get; set; } + + public ControlRequest() + { + Headers = new Dictionary<string, string>(); + } + } + + public class ControlResponse + { + public IDictionary<string, string> Headers { get; set; } + + public string Xml { get; set; } + + public ControlResponse() + { + Headers = new Dictionary<string, string>(); + } + } +} diff --git a/MediaBrowser.Controller/Dlna/IDlnaManager.cs b/MediaBrowser.Controller/Dlna/IDlnaManager.cs index 521d17e01f..bcccaaa2e9 100644 --- a/MediaBrowser.Controller/Dlna/IDlnaManager.cs +++ b/MediaBrowser.Controller/Dlna/IDlnaManager.cs @@ -55,5 +55,27 @@ namespace MediaBrowser.Controller.Dlna /// <param name="deviceInfo">The device information.</param> /// <returns>DeviceProfile.</returns> DeviceProfile GetProfile(DeviceIdentification deviceInfo); + + /// <summary> + /// Gets the server description XML. + /// </summary> + /// <param name="headers">The headers.</param> + /// <param name="serverUuId">The server uu identifier.</param> + /// <returns>System.String.</returns> + string GetServerDescriptionXml(IDictionary<string, string> headers, string serverUuId); + + /// <summary> + /// Gets the content directory XML. + /// </summary> + /// <param name="headers">The headers.</param> + /// <returns>System.String.</returns> + string GetContentDirectoryXml(IDictionary<string, string> headers); + + /// <summary> + /// Processes the control request. + /// </summary> + /// <param name="request">The request.</param> + /// <returns>ControlResponse.</returns> + ControlResponse ProcessControlRequest(ControlRequest request); } } |
