Files
qbtmud/Lantean.QBitTorrentClient/Models/PeerLog.cs
2024-04-22 14:15:07 +01:00

37 lines
850 B
C#

using System.Text.Json.Serialization;
namespace Lantean.QBitTorrentClient.Models
{
public record PeerLog
{
[JsonConstructor]
public PeerLog(
int id,
string iPAddress,
long timestamp,
bool blocked,
string reason)
{
Id = id;
IPAddress = iPAddress;
Timestamp = timestamp;
Blocked = blocked;
Reason = reason;
}
[JsonPropertyName("id")]
public int Id { get; }
[JsonPropertyName("ip")]
public string IPAddress { get; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; }
[JsonPropertyName("blocked")]
public bool Blocked { get; }
[JsonPropertyName("reason")]
public string Reason { get; }
}
}