This repository was archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBasicApiProblem.cs
More file actions
executable file
·42 lines (35 loc) · 1.53 KB
/
Copy pathBasicApiProblem.cs
File metadata and controls
executable file
·42 lines (35 loc) · 1.53 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Newtonsoft.Json;
namespace WebApiProblem
{
[DataContract(Name = "problem", Namespace = WebApiProblemNames.XmlNamespaceName)]
[XmlRoot("problem", Namespace = WebApiProblemNames.XmlNamespaceName)]
public class BasicApiProblem : ApiProblem
{
[XmlElement("problemType")]
[JsonProperty("problemType")]
[DataMember(Name = "problemType", Order = 100, EmitDefaultValue = false)]
public string ProblemTypeUrl { get; set; }
[XmlElement("title")]
[JsonProperty("title")]
[DataMember(Name = "title", Order = 200, EmitDefaultValue = false)]
public string Title { get; set; }
[XmlElement("detail")]
[JsonProperty("detail")]
[DataMember(Name = "detail", Order = 300, EmitDefaultValue = false)]
public string Detail { get; set; }
[XmlElement("httpStatus")]
[JsonProperty("httpStatus")]
[DataMember(Name = "httpStatus", Order = 400, EmitDefaultValue = false)]
public string HttpStatus { get; set; }
[XmlElement("details")]
[JsonProperty("details")]
[DataMember(Name = "details", Order = 500, EmitDefaultValue = false)]
public string Details { get; set; }
[XmlElement("problemInstance")]
[JsonProperty("problemInstance")]
[DataMember(Name = "problemInstance", Order = 600, EmitDefaultValue = false)]
public string ProblemInstance { get; set; }
}
}