2012-02-16 07:16:57 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2012-02-05 07:34:36 +01:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Contract
|
|
|
|
|
{
|
|
|
|
|
public class ExceptionReport : ReportBase
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("t")]
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
[JsonProperty("l")]
|
|
|
|
|
public string Logger { get; set; }
|
|
|
|
|
[JsonProperty("lm")]
|
|
|
|
|
public string LogMessage { get; set; }
|
|
|
|
|
[JsonProperty("s")]
|
|
|
|
|
public string String { get; set; }
|
2012-02-16 07:16:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override Dictionary<string, string> GetString()
|
|
|
|
|
{
|
|
|
|
|
var dic = new Dictionary<string, string>
|
|
|
|
|
{
|
2012-03-01 03:36:39 +01:00
|
|
|
|
{"ExType", Type.NullSafe()},
|
|
|
|
|
{"Logger", Logger.NullSafe()},
|
|
|
|
|
{"Message", LogMessage.NullSafe()},
|
|
|
|
|
{"Str", String.NullSafe()}
|
2012-02-16 07:16:57 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return dic;
|
|
|
|
|
}
|
2012-02-05 07:34:36 +01:00
|
|
|
|
}
|
|
|
|
|
}
|