20 lines
468 B
C#
20 lines
468 B
C#
|
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}";
|
|||
|
}
|