namespace skyscraper5.Skyscraper.Scraper.Storage.Utilities
{
    public class DatabaseKeyBatBouquet
    {
        public ushort Id { get; }
        public DatabaseKeyBatBouquet(ushort id)
        {
            Id = id;
        }

        protected bool Equals(DatabaseKeyBatBouquet other)
        {
            return Id == other.Id;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != this.GetType()) return false;
            return Equals((DatabaseKeyBatBouquet)obj);
        }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}
