using MongoDB.Entities; namespace PrivaPub.Models.Federation { // a relay the instance actor subscribes to (Federation:Relays): it passes on the public posts its other subscribers // send it. PrivaPub only reads from it, and sends it nothing of its personas. public class RelaySubscription : Entity { public string Configured { get; set; }//as the configuration names it public string ActorURI { get; set; } public string InboxURL { get; set; } public string FollowActivityURI { get; set; } public RelayState State { get; set; } = RelayState.Pending; public DateTime RequestedAt { get; set; } = DateTime.UtcNow; public DateTime? AnsweredAt { get; set; } } public enum RelayState { Pending, Accepted, Rejected } }