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