mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-10-31 03:53:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			698 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			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; }
 | |
|     }
 | |
| } |