mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
- Fixed some possible nullref exceptions - Methods signatures now have up to 3 parameters before breakaing down each parameter in a separate line - Method invocations have the same rule, except the first parameter will be in the same line as the invocation to prevent some ugliness when passing lambas as arguments - Applied many more codestyles - Extensions folder fully reformatted
18 lines
555 B
C#
18 lines
555 B
C#
namespace NadekoBot.Services.Database.Models;
|
|
|
|
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()
|
|
=> Url.GetHashCode(StringComparison.InvariantCulture) ^ GuildConfigId.GetHashCode();
|
|
|
|
public override bool Equals(object obj)
|
|
=> obj is FeedSub s
|
|
&& s.Url.ToLower() == Url.ToLower()
|
|
&& s.GuildConfigId == GuildConfigId;
|
|
} |