forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEmojiSource.cs
More file actions
55 lines (50 loc) · 2.02 KB
/
Copy pathIEmojiSource.cs
File metadata and controls
55 lines (50 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Content.Emoji
{
/// <summary>
/// Interface for Emoji sources. Emoji sources provide emojis to content providers.
/// </summary>
public interface IEmojiSource
{
/// <summary>
/// If the emoji is supported by the emoji source.
/// </summary>
/// <param name="Emoji">Emoji</param>
/// <returns>If emoji is supported.</returns>
bool EmojiSupported(EmojiInfo Emoji);
/// <summary>
/// Generates HTML for a given Emoji.
/// </summary>
/// <param name="Output">Output</param>
/// <param name="Emoji">Emoji</param>
/// <param name="EmbedImage">If image should be embedded into the generated HTML, using the data URI scheme.</param>
void GenerateHTML(StringBuilder Output, EmojiInfo Emoji, bool EmbedImage);
/// <summary>
/// Generates HTML for a given Emoji.
/// </summary>
/// <param name="Output">Output</param>
/// <param name="Emoji">Emoji</param>
/// <param name="Level">Level (number of colons used to define the emoji)</param>
/// <param name="EmbedImage">If image should be embedded into the generated HTML, using the data URI scheme.</param>
void GenerateHTML(StringBuilder Output, EmojiInfo Emoji, int Level, bool EmbedImage);
/// <summary>
/// Gets the image source of an emoji.
/// </summary>
/// <param name="Emoji">Emoji</param>
/// <param name="Url">URL to emoji.</param>
/// <param name="Width">Width of emoji.</param>
/// <param name="Height">Height of emoji.</param>
void GetImageSource(EmojiInfo Emoji, out string Url, out int Width, out int Height);
/// <summary>
/// Gets the image source of an emoji.
/// </summary>
/// <param name="Emoji">Emoji</param>
/// <param name="Level">Level (number of colons used to define the emoji)</param>
/// <param name="Url">URL to emoji.</param>
/// <param name="Width">Width of emoji.</param>
/// <param name="Height">Height of emoji.</param>
void GetImageSource(EmojiInfo Emoji, int Level, out string Url, out int Width, out int Height);
}
}