mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-27 04:33:29 +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);
|
||
|
}
|
||
|
}
|