Class ASLinkEntity
- Namespace
- ActivityPub.Types.AS
- Assembly
- ActivityPub.Types.dll
A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by RFC5988. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource.
public sealed class ASLinkEntity : ASEntity<ASLink, ASLinkEntity>
- Inheritance
-
ASLinkEntity
- Inherited Members
Properties
HRef
The target resource pointed to by a
[JsonPropertyName("href")]
public ASUri? HRef { get; set; }
Property Value
- See Also
HRefLang
Hints as to the language used by the target resource. Value MUST be a [BCP47] Language-Tag.
[JsonPropertyName("hreflang")]
public string? HRefLang { get; set; }
Property Value
- See Also
Height
On a Link, specifies a hint as to the rendering height in device-independent pixels of the linked resource.
[JsonPropertyName("height")]
public int? Height { get; set; }
Property Value
- int?
- See Also
Rel
A link relation associated with a The value MUST conform to both the [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.
[JsonPropertyName("rel")]
public HashSet<LinkRel> Rel { get; set; }
Property Value
- See Also
RequiresObjectForm
True if the object's current state can only be represented by the object form. Objects that extend ASLink MUST return true if any properties are populated, other than HRef!
public override bool RequiresObjectForm { get; }
Property Value
Width
On a Link, specifies a hint as to the rendering width in device-independent pixels of the linked resource.
[JsonPropertyName("width")]
public int? Width { get; set; }
Property Value
- int?
- See Also