using System.Text.Json.Serialization; using MessagePack; using Shiki.Internationalization.Component; namespace UniScan.Network.Data.Info.Remote; /// /// A link to an external website /// /// The icon url, if present /// The link title /// The link itself [MessagePackObject] public readonly record struct RemoteLink( [property: Key(0), JsonPropertyName("icon_url")] Uri? IconUrl, [property: Key(1), JsonPropertyName("name")] ITextComponent Name, [property: Key(2), JsonPropertyName("url")] Uri Url );