NadekoBot/NadekoBot.Core/Services/Database/Models/LoadedPackage.cs
2017-10-13 06:14:54 +02:00

20 lines
423 B
C#

namespace NadekoBot.Core.Services.Database.Models
{
public class LoadedPackage : DbEntity
{
public string Name { get; set; }
public override bool Equals(object obj)
{
return obj is LoadedPackage p
? p.Name == Name
: false;
}
public override int GetHashCode()
{
return Name.GetHashCode();
}
}
}