2020-07-22 19:49:08 -04:00
|
|
|
|
using System.Net;
|
|
|
|
|
using BirdsiteLive.ActivityPub.Converters;
|
2020-06-06 01:29:13 -04:00
|
|
|
|
using Newtonsoft.Json;
|
2020-06-06 00:14:42 -04:00
|
|
|
|
|
|
|
|
|
namespace BirdsiteLive.ActivityPub
|
|
|
|
|
{
|
|
|
|
|
public class Actor
|
|
|
|
|
{
|
2020-06-06 01:29:13 -04:00
|
|
|
|
//[JsonPropertyName("@context")]
|
|
|
|
|
[JsonProperty("@context")]
|
2020-06-10 20:40:25 -04:00
|
|
|
|
[JsonConverter(typeof(ContextArrayConverter))]
|
|
|
|
|
public string[] context { get; set; } = new[] { "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" };
|
2020-06-06 00:14:42 -04:00
|
|
|
|
public string id { get; set; }
|
|
|
|
|
public string type { get; set; }
|
2020-11-21 18:54:16 -05:00
|
|
|
|
public string followers { get; set; }
|
2020-06-06 00:14:42 -04:00
|
|
|
|
public string preferredUsername { get; set; }
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
public string summary { get; set; }
|
|
|
|
|
public string url { get; set; }
|
2021-01-28 18:47:45 -05:00
|
|
|
|
public bool manuallyApprovesFollowers { get; set; }
|
2020-06-06 00:14:42 -04:00
|
|
|
|
public string inbox { get; set; }
|
2020-11-21 18:54:16 -05:00
|
|
|
|
public bool? discoverable { get; set; } = true;
|
2020-06-06 00:14:42 -04:00
|
|
|
|
public PublicKey publicKey { get; set; }
|
|
|
|
|
public Image icon { get; set; }
|
|
|
|
|
public Image image { get; set; }
|
2020-07-22 19:49:08 -04:00
|
|
|
|
public EndPoints endpoints { get; set; }
|
2021-01-11 01:34:19 -05:00
|
|
|
|
public UserAttachment[] attachment { get; set; }
|
2020-06-06 00:14:42 -04:00
|
|
|
|
}
|
|
|
|
|
}
|