2017-09-10 01:52:34 +00:00
|
|
|
|
using Discord;
|
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Modules.Xp.Services
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
|
|
|
|
public class UserCacheItem
|
|
|
|
|
{
|
2017-09-10 01:52:34 +00:00
|
|
|
|
public IGuildUser User { get; set; }
|
|
|
|
|
public IGuild Guild { get; set; }
|
|
|
|
|
public IMessageChannel Channel { get; set; }
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
{
|
2017-09-10 01:52:34 +00:00
|
|
|
|
return User.GetHashCode();
|
2017-08-22 03:48:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool Equals(object obj)
|
|
|
|
|
{
|
2017-09-10 01:52:34 +00:00
|
|
|
|
return obj is UserCacheItem uci && uci.User == User;
|
2017-08-22 03:48:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|