コード例 #1
0
 static void AddEmoji(EmojiDescription description)
 {
     foreach (var utf32 in description.Utf32s)
     {
         _emojis.Add(utf32, description);
     }
 }
コード例 #2
0
 static void InsertSound(StringBuilder ssmlBuilder, EmojiDescription description)
 {
     ssmlBuilder.Append($"<mark name='{description.VisualString}'/>");
     if (description.AudioFileName != null)
     {
         ssmlBuilder.Append($"<audio src='{description.AudioFileName}'/>");
     }
 }
コード例 #3
0
        static void AddEmoji(int utf32, string audioFileName, string visualString)
        {
            var path = audioFileName != null?Path.Combine(Prefix, Theme + '_' + audioFileName + Suffix) : null;

            var description = new EmojiDescription(utf32, path, visualString);

            AddEmoji(description);
        }