forked from adam/discord-bot-shtik
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
twitch interface needs to collapse users, it's creating redundant copies UACs need to be un-linkable no search and no list make homer something something
34 lines
849 B
C#
34 lines
849 B
C#
namespace vassago.Models;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Reflection;
|
|
using System.Text.Json.Serialization;
|
|
|
|
public class Account
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; }
|
|
public string ExternalId { get; set; }
|
|
public string Username { get; set; }
|
|
private string _displayName = null;
|
|
public string DisplayName
|
|
{
|
|
get
|
|
{
|
|
return _displayName ?? Username;
|
|
}
|
|
set
|
|
{
|
|
_displayName = value;
|
|
}
|
|
}
|
|
public bool IsBot { get; set; } //webhook counts
|
|
public Channel SeenInChannel { get; set; }
|
|
public string Protocol { get; set; }
|
|
public List<UAC> UACs { get; set; }
|
|
[JsonIgnore]
|
|
public User IsUser {get; set;}
|
|
}
|