Uwaa/Pleroma/Models/Hashtag.cs

20 lines
468 B
C#
Raw Normal View History

2024-12-11 03:49:46 +01:00
using System.Text.Json.Serialization;
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!;
public override string ToString() => $"#{Name}";
}