Files

25 lines
776 B
C#
Raw Permalink Normal View History

using MongoDB.Entities;
namespace PrivaPub.Models.Federation
{
public class Follower : Entity
{
public string LocalActorId { get; set; }
public LocalActorKind LocalActorKind { get; set; }
public string ActorURI { get; set; }
public string InboxURL { get; set; }
public string SharedInboxURL { get; set; }
public string FollowActivityURI { get; set; }
public bool IsAccepted { get; set; } = true;
public DateTime CreationDate { get; set; } = DateTime.UtcNow;
}
public enum LocalActorKind
{
Person,
Group,
Application,
Reporter,//the anonymous Service that carries reports to Lemmy (LocalActorService.ReporterUserName)
Reader//the anonymous Service that follows the communities of the feeds personas read (LocalActorService.ReaderUserName)
}
}