vassago/Models/Account.cs
adam 6881816c94
Some checks failed
gitea.arg.rip/vassago/pipeline/head There was a failure building this commit
self referencing serialization ignored
2025-03-12 16:05:22 -04:00

33 lines
838 B
C#

namespace vassago.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
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; }
[JsonIgnore]
public User IsUser {get; set;}
}