63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
|
|
using OneOf;
|
||
|
|
|
||
|
|
namespace ActivityPub;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#Link
|
||
|
|
/// </summary>
|
||
|
|
public class Link {
|
||
|
|
/// <summary>
|
||
|
|
/// Default Constructor
|
||
|
|
/// </summary>
|
||
|
|
public Link() => this.Type = "Link";
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/TR/activitypub/#obj-id
|
||
|
|
/// </summary>
|
||
|
|
public Uri? Id { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/TR/activitystreams-vocabulary/#dfn-type
|
||
|
|
/// </summary>
|
||
|
|
public string Type { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#href
|
||
|
|
/// </summary>
|
||
|
|
public Uri? Href { get => this.Id; set => this.Id = value; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#rel
|
||
|
|
/// </summary>
|
||
|
|
public string? Rel { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#mediaType
|
||
|
|
/// </summary>
|
||
|
|
public string? MediaType { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#name
|
||
|
|
/// </summary>
|
||
|
|
public string? Name { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#hreflang
|
||
|
|
/// </summary>
|
||
|
|
public string? Hreflang { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#height
|
||
|
|
/// </summary>
|
||
|
|
public uint? Height { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#width
|
||
|
|
/// </summary>
|
||
|
|
public uint? Width { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// https://www.w3.org/ns/activitystreams#preview
|
||
|
|
/// </summary>
|
||
|
|
public ObjectOrLink? Preview { get; set; }
|
||
|
|
}
|