Files
2024-04-22 14:15:07 +01:00

32 lines
698 B
C#

using System.Text.Json.Serialization;
namespace Lantean.QBitTorrentClient.Models
{
public record Log
{
[JsonConstructor]
public Log(
int id,
string message,
long timestamp,
LogType type)
{
Id = id;
Message = message;
Timestamp = timestamp;
Type = type;
}
[JsonPropertyName("id")]
public int Id { get; }
[JsonPropertyName("message")]
public string Message { get; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; }
[JsonPropertyName("type")]
public LogType Type { get; }
}
}