aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/ControlResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna/ControlResponse.cs')
-rw-r--r--Emby.Dlna/ControlResponse.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/Emby.Dlna/ControlResponse.cs b/Emby.Dlna/ControlResponse.cs
index d2b79fc58..8b0958842 100644
--- a/Emby.Dlna/ControlResponse.cs
+++ b/Emby.Dlna/ControlResponse.cs
@@ -1,18 +1,28 @@
+#pragma warning disable CS1591
+
using System.Collections.Generic;
namespace Emby.Dlna
{
public class ControlResponse
{
- public IDictionary<string, string> Headers { get; set; }
+ public ControlResponse(string xml, bool isSuccessful)
+ {
+ Headers = new Dictionary<string, string>();
+ Xml = xml;
+ IsSuccessful = isSuccessful;
+ }
+
+ public IDictionary<string, string> Headers { get; }
public string Xml { get; set; }
public bool IsSuccessful { get; set; }
- public ControlResponse()
+ /// <inheritdoc />
+ public override string ToString()
{
- Headers = new Dictionary<string, string>();
+ return Xml;
}
}
}