#nullable enable
using System.Collections.Generic;
namespace PluralKit.Core
{
///
/// Model for the `proxy_members` PL/pgSQL function in `functions.sql`
///
public class ProxyMember
{
public int Id { get; set; }
public IReadOnlyCollection ProxyTags { get; set; } = new ProxyTag[0];
public bool KeepProxy { get; set; }
public string? ServerName { get; set; }
public string? DisplayName { get; set; }
public string Name { get; set; } = "";
public string? SystemTag { get; set; }
public string? ServerAvatar { get; set; }
public string? Avatar { get; set; }
public string? SystemIcon { get; set; }
public string ProxyName => SystemTag != null
? $"{ServerName ?? DisplayName ?? Name} {SystemTag}"
: ServerName ?? DisplayName ?? Name;
public string? ProxyAvatar => ServerAvatar ?? Avatar ?? SystemIcon;
}
}