23 lines
633 B
C#
23 lines
633 B
C#
using MongoDB.Entities;
|
|||
|
|
|
||
|
|
namespace PrivaPub.Models.Social
|
||
|
|
{
|
||
|
|
public class Following : Entity
|
||
|
|
{
|
||
|
|
public string AvatarId { get; set; }//the local follower
|
||
|
|
public string TargetActorURI { get; set; }
|
||
|
|
public string TargetAccountId { get; set; }//Avatar.ID, Group.ID or ForeignAvatar.ID
|
||
|
|
public bool TargetIsLocal { get; set; }
|
||
|
|
public string TargetInboxURL { get; set; }
|
||
|
|
public FollowState State { get; set; }
|
||
|
|
public string FollowActivityURI { get; set; }
|
||
|
|
public bool ShowReblogs { get; set; } = true;
|
||
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum FollowState
|
||
|
|
{
|
||
|
|
Requested,
|
||
|
|
Accepted
|
||
|
|
}
|
||
|
|
}
|