mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-25 00:53:42 +00:00
37 lines
850 B
C#
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; }
|
|
}
|
|
} |