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;
|
2023-07-04 18:51:27 -04:00
|
|
|
using System.Threading.Tasks;
|
2023-06-19 12:56:40 -04:00
|
|
|
|
|
|
|
public class Account
|
|
|
|
{
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
public Guid Id { get; set; }
|
2023-07-04 12:58:21 -04:00
|
|
|
public string ExternalId { get; set; }
|
2023-06-19 12:56:40 -04:00
|
|
|
public string Username { get; set; }
|
|
|
|
private string _displayName = null;
|
2023-06-28 00:14:32 -04:00
|
|
|
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; }
|
2023-06-28 00:14:32 -04:00
|
|
|
public User IsUser {get; set;}
|
2023-06-19 12:56:40 -04:00
|
|
|
}
|