Uwaa/Pleroma/Models/Hashtag.cs
2024-12-25 23:34:13 +00:00

23 lines
No EOL
489 B
C#

namespace Uwaa.Pleroma;
public class Hashtag
{
/// <summary>
/// The value of the hashtag after the # sign
/// </summary>
[JsonPropertyName("name")]
public string Name { get; set; } = null!;
/// <summary>
/// A link to the hashtag on the instance
/// </summary>
[JsonPropertyName("url")]
public string URL { get; set; } = null!;
[JsonConstructor()]
internal Hashtag()
{
}
public override string ToString() => $"#{Name}";
}