mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00

* Add constants for emojis * Move emoji shortcode rendering to Markup * Add documentation * Add example * Add tests
21 lines
471 B
C#
21 lines
471 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Docs.Models
|
|
{
|
|
public sealed class Emoji
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Code { get; set; }
|
|
|
|
public static List<Emoji> Parse(string json)
|
|
{
|
|
return JsonConvert.DeserializeObject<List<Emoji>>(json);
|
|
}
|
|
}
|
|
}
|