SocialPub/PrivaPub/Models/ActivityPub/ActivityPubLink.cs

29 lines
745 B
C#
Raw Normal View History

2023-02-18 08:52:17 +01:00
using System.Text.Json.Serialization;
2023-02-19 00:43:43 +01:00
namespace PrivaPub.Models.ActivityPub
2023-02-18 08:52:17 +01:00
{
[JsonSerializable(typeof(ActivityPubLink))]
public class ActivityPubLink : ActivityPubObject
{
[JsonPropertyName("id")]
public new ObjectType Type { get; set; } = ObjectType.Mention;
[JsonPropertyName("href")]
public string Href { get; set; }
[JsonPropertyName("preview")]
public string Preview { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("rel")]
public string Relation { get; set; }
[JsonPropertyName("hreflang")]
public string HrefLang { get; set; }
[JsonPropertyName("height")]
public int Height { get; set; }
[JsonPropertyName("width")]
public int Width { get; set; }
}
}