This repository has been archived on 2023-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
discord-bot-shtik/Models/Account.cs

31 lines
783 B
C#
Raw Normal View History

2023-06-19 12:56:40 -04:00
namespace vassago.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using System.Threading.Tasks;
2023-06-19 12:56:40 -04:00
public class Account
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get; set; }
public string ExternalId { get; set; }
2023-06-19 12:56:40 -04:00
public string Username { get; set; }
private string _displayName = null;
public string DisplayName
2023-06-19 12:56:40 -04:00
{
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 User IsUser {get; set;}
2023-06-19 12:56:40 -04:00
}