pr1/presence/data/Entity/User.cs

21 lines
538 B
C#
Raw Permalink Normal View History

2024-10-19 21:12:06 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-12-23 09:12:26 +00:00
namespace presence.data.LocalData.Entity
2024-10-19 21:12:06 +00:00
{
2024-12-19 17:36:57 +00:00
public class UserLocalEntity : IEquatable<UserLocalEntity>
2024-10-19 21:12:06 +00:00
{
public required string FIO { get; set; }
public Guid Guid { get; set; }
2024-12-23 09:12:26 +00:00
public required int GroupId { get; set; }
2024-10-19 21:12:06 +00:00
2024-12-19 17:36:57 +00:00
public bool Equals(UserLocalEntity? other)
2024-10-19 21:12:06 +00:00
{
if (other == null) return false;
2024-12-23 09:12:26 +00:00
return Guid.Equals(other.Guid);
2024-10-19 21:12:06 +00:00
}
}
2024-12-19 17:36:57 +00:00
}