mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 12:15:42 +08:00
16 lines
385 B
C#
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);
|
|
}
|
|
}
|