mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 22:35:40 +00:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.Models.Generic;
|
|
|
|
[DebuggerDisplay("{User.Id} ({User.Username}#{User.Discriminator})")]
|
|
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
|
|
[SuppressMessage("ReSharper", "PropertyCanBeMadeInitOnly.Global")]
|
|
public class Member {
|
|
[JsonPropertyName("user")]
|
|
public required PartialUser User { get; set; }
|
|
|
|
[JsonPropertyName("nick")]
|
|
public string? Nick { get; set; }
|
|
|
|
[JsonPropertyName("avatar")]
|
|
public string? Avatar { get; set; }
|
|
|
|
[JsonPropertyName("avatar_decoration_data")]
|
|
public object? AvatarDecorationData { get; set; }
|
|
|
|
[JsonPropertyName("collectibles")]
|
|
public object? Collectibles { get; set; }
|
|
|
|
[JsonPropertyName("display_name_styles")]
|
|
public object? DisplayNameStyles { get; set; }
|
|
|
|
[JsonPropertyName("banner")]
|
|
public string? Banner { get; set; }
|
|
|
|
[JsonPropertyName("bio")]
|
|
public string? Bio { get; set; }
|
|
|
|
[JsonPropertyName("roles")]
|
|
public List<string>? Roles { get; set; }
|
|
}
|
|
|
|
// Unsure if this is used anywhere outside of op14...?
|
|
public class MemberWithPresence : Member {
|
|
[JsonPropertyName("presence")]
|
|
public Presence? Presence { get; set; }
|
|
} |