using System.Diagnostics.CodeAnalysis;

namespace Monitoring.Features.Reports.Contracts;

public class LogGroupModelComparer : IEqualityComparer<LogGroupModel>
{
	public bool Equals(LogGroupModel? x, LogGroupModel? y)
	{
		return x?.AssetId.Equals(y?.AssetId) == true;
	}

	public int GetHashCode([DisallowNull] LogGroupModel obj)
	{
		return obj.AssetId.GetHashCode();
	}
}
