23 lines
No EOL
489 B
C#
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}";
|
|
} |