aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/ControlResponse.cs
blob: 8b095884240e100b97dad43cade98f43e3b3ed70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma warning disable CS1591

using System.Collections.Generic;

namespace Emby.Dlna
{
    public class ControlResponse
    {
        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; }

        /// <inheritdoc />
        public override string ToString()
        {
            return Xml;
        }
    }
}