BililiveRecorder/BililiveRecorder.Web/Models/Rest/Logs/JsonLog.cs
2022-08-31 14:46:35 +08:00

16 lines
385 B
C#

using System;
using Newtonsoft.Json;
namespace BililiveRecorder.Web.Models.Rest.Logs
{
public class JsonLog : IComparable<JsonLog>
{
public long Id { get; set; }
[JsonConverter(typeof(RawJsonStringConverter))]
public string Log { get; set; } = "{}";
int IComparable<JsonLog>.CompareTo(JsonLog? other) => this.Id.CompareTo(other?.Id);
}
}