10 lines
507 B
C#
10 lines
507 B
C#
using SharpChat.Bans;
|
|
|
|
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;
|
|
}
|