Cyrus-Vance_Magic-Conch/CyrusVance.CoolQRobot/Utils/Convert.cs
namespace CyrusVance.CoolQRobot.Utils {
    /// <summary>
    /// ä¸€äº›å¸¸ç”¨çš„è½¬æ�¢
    /// </summary>
    public class Convert {
        //å–„ç”¨ä»£ç �æŠ˜å� 
        static string[] emojiDict = {
            "ğŸ˜²",
            "ğŸ˜³",
            "ğŸ˜�",
            "ğŸ˜§",
            "ğŸ˜�",
            "ğŸ˜­",
            "ğŸ˜‡",
            "ğŸ¤�",
            "ğŸ’¤",
            "ğŸ¥º",
            "ğŸ˜°",
            "ğŸ˜¡",
            "ğŸ˜œ",
            "ğŸ˜¬",
            "ğŸ™‚",
            "ğŸ™�",
            "ğŸ˜¦",
            "ğŸ˜¤",
            "ğŸ¤®",
            "æ�‚å˜´ç¬‘",
            "ğŸ˜Š",
            "ğŸ¤”",
            "ğŸ¤¨",
            "ğŸ˜�",
            "ğŸ˜´"
        };
        /// <summary>
        /// å°†QQè¡¨æƒ…è½¬æ�¢ä¸ºemoji
        /// </summary>
        /// <param name="faceId">è¡¨æƒ…ç¼–å�·(1-170)</param>
        public static string ToEmoji (int faceId) {
            if (faceId < emojiDict.Length)
                return emojiDict[faceId];
            else return "æœªçŸ¥è¡¨æƒ…";
        }
        /// <summary></summary>
        public static string ToEmoji (CyrusVance.CoolQRobot.Messages.CQElements.ElementFace i) {
            return ToEmoji (int.Parse (i.data["id"]));
        }
    }
}