2017-10-13 04:14:54 +00:00
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
2017-09-22 04:59:57 +00:00
|
|
|
|
{
|
|
|
|
|
public class FeedSub : DbEntity
|
|
|
|
|
{
|
|
|
|
|
public int GuildConfigId { get; set; }
|
|
|
|
|
public GuildConfig GuildConfig { get; set; }
|
|
|
|
|
|
|
|
|
|
public ulong ChannelId { get; set; }
|
|
|
|
|
public string Url { get; set; }
|
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
{
|
|
|
|
|
return Url.GetHashCode() ^ GuildConfigId.GetHashCode();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool Equals(object obj)
|
|
|
|
|
{
|
|
|
|
|
return obj is FeedSub s
|
|
|
|
|
? s.Url == Url && s.GuildConfigId == GuildConfigId
|
|
|
|
|
: false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|