mirror of
https://github.com/akpaevj/onecmonitor.git
synced 2024-12-14 10:12:52 +02:00
29 lines
768 B
C#
29 lines
768 B
C#
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using OnecMonitor.Server.Converters.Json;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace OnecMonitor.Server.Models
|
|
{
|
|
public class Agent
|
|
{
|
|
public Guid Id { get; init; }
|
|
public string InstanceName { get; set; } = string.Empty;
|
|
|
|
public List<TechLogSeance> Seances { get; set; } = new();
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
return obj is Agent agent &&
|
|
Id.Equals(agent.Id);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return HashCode.Combine(Id);
|
|
}
|
|
}
|
|
}
|