2024-12-13 13:25:20 +01:00
|
|
|
|
namespace Uwaa.Pleroma;
|
2024-12-11 03:49:46 +01:00
|
|
|
|
|
|
|
|
|
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!;
|
|
|
|
|
|
2024-12-26 00:34:13 +01:00
|
|
|
|
[JsonConstructor()]
|
2024-12-26 00:09:26 +01:00
|
|
|
|
internal Hashtag()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-11 03:49:46 +01:00
|
|
|
|
public override string ToString() => $"#{Name}";
|
|
|
|
|
}
|