NadekoBot/NadekoBot.Core/Services/Database/Models/CommandCost.cs
2017-09-30 00:46:33 +02:00

22 lines
513 B
C#

namespace NadekoBot.Services.Database.Models
{
public class CommandCost : DbEntity
{
public int Cost { get; set; }
public string CommandName { get; set; }
public override int GetHashCode() =>
CommandName.GetHashCode();
public override bool Equals(object obj)
{
var instance = obj as CommandCost;
if (instance == null)
return false;
return instance.CommandName == CommandName;
}
}
}