using AsbCloudApp.Data.SAUB; using System.Collections.Generic; namespace AsbCloudApp.Comparators; /// public class TelemetryUserDtoComparer : IEqualityComparer { /// public bool Equals(TelemetryUserDto? prevUser, TelemetryUserDto? nextUser) { if (prevUser is not null && nextUser is not null) return prevUser.Id == nextUser.Id; return prevUser == nextUser; } /// public int GetHashCode(TelemetryUserDto user) => user.Id.GetHashCode(); }