mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-11-09 08:26:08 +00:00
Add project files.
This commit is contained in:
32
Lantean.QBitTorrentClient/Models/Log.cs
Normal file
32
Lantean.QBitTorrentClient/Models/Log.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user