2017-10-13 04:14:54 +00:00
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
2017-01-14 16:37:11 +00:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|