mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-11-04 05:53:22 +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; }
 | 
						|
    }
 | 
						|
} |