Class LinkPreview
A link preview card shown above the message text. Signal clients only render it if Url appears in the text, which Build() enforces.
public sealed record LinkPreview : IEquatable<LinkPreview>
- Inheritance
-
LinkPreview
- Implements
- Inherited Members
Constructors
LinkPreview(string, string?, string?, string?)
A link preview card shown above the message text. Signal clients only render it if Url appears in the text, which Build() enforces.
public LinkPreview(string Url, string? Title = null, string? Description = null, string? Base64Thumbnail = null)
Parameters
UrlstringThe previewed
httporhttpsURL.TitlestringThe card title.
DescriptionstringThe card description.
Base64ThumbnailstringThe thumbnail image as base64 or data URI.
Properties
Base64Thumbnail
The thumbnail image as base64 or data URI.
public string? Base64Thumbnail { get; init; }
Property Value
Description
The card description.
public string? Description { get; init; }
Property Value
Title
The card title.
public string? Title { get; init; }
Property Value
Url
The previewed http or https URL.
public string Url { get; init; }