You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
763 B
29 lines
763 B
using Newtonsoft.Json;
|
|
using SharpRaven.Data;
|
|
|
|
namespace NzbDrone.Common.Instrumentation.Sentry
|
|
{
|
|
public class LidarrSentryPacket : JsonPacket
|
|
{
|
|
private readonly JsonSerializerSettings _setting;
|
|
|
|
public LidarrSentryPacket(string project, SentryEvent @event) :
|
|
base(project, @event)
|
|
{
|
|
_setting = new JsonSerializerSettings
|
|
{
|
|
DefaultValueHandling = DefaultValueHandling.Ignore
|
|
};
|
|
}
|
|
|
|
public override string ToString(Formatting formatting)
|
|
{
|
|
return JsonConvert.SerializeObject(this, formatting, _setting);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return ToString(Formatting.None);
|
|
}
|
|
}
|
|
} |