1 Commits

Author SHA1 Message Date
azyges
eb04433427 include vanity and colors 2025-09-26 17:59:11 +09:00

View File

@@ -1,9 +1,16 @@
using MessagePack;
using MessagePack;
namespace LightlessSync.API.Data;
[MessagePackObject(keyAsPropertyName: true)]
public record UserData(string UID, string? Alias = null, bool IsAdmin = false, bool IsModerator = false)
public record UserData(
string UID,
string? Alias = null,
bool IsAdmin = false,
bool IsModerator = false,
bool HasVanity = false,
string? TextColorHex = "",
string? TextGlowColorHex = "")
{
[IgnoreMember]
public string AliasOrUID => string.IsNullOrWhiteSpace(Alias) ? UID : Alias;