2025-04-26 23:15:54 +00:00
|
|
|
using SharpChat.Bans;
|
2025-04-26 19:42:23 +00:00
|
|
|
|
2025-04-26 23:15:54 +00:00
|
|
|
namespace SharpChat.Flashii;
|
|
|
|
|
|
|
|
public class FlashiiUserBanInfo(FlashiiRawBanInfo rawBanInfo) : FlashiiBanInfo(BanKind.User, rawBanInfo), UserBanInfo {
|
|
|
|
public string UserId { get; } = rawBanInfo.UserId ?? string.Empty;
|
|
|
|
public string UserName { get; } = rawBanInfo.UserName ?? $"({rawBanInfo.UserId ?? string.Empty})";
|
|
|
|
public ColourInheritable UserColour { get; } = ColourInheritable.FromMisuzu(rawBanInfo.UserColourRaw);
|
|
|
|
public override string ToString() => UserName;
|
2025-04-26 19:42:23 +00:00
|
|
|
}
|