Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NoEmojis.cs
1using System.Text;
2using System.Threading.Tasks;
3
5{
10 public class NoEmojis : IEmojiSource
11 {
15 public NoEmojis()
16 {
17 }
18
24 public bool EmojiSupported(EmojiInfo Emoji) => false;
25
32 public Task GenerateHTML(StringBuilder Output, EmojiInfo Emoji, bool EmbedImage) => Task.CompletedTask;
33
41 public Task GenerateHTML(StringBuilder Output, EmojiInfo Emoji, int Level, bool EmbedImage) => Task.CompletedTask;
42
47 public Task<IImageSource> GetImageSource(EmojiInfo Emoji) => Task.FromResult<IImageSource>(null);
48
54 public Task<IImageSource> GetImageSource(EmojiInfo Emoji, int Level) => Task.FromResult<IImageSource>(null);
55 }
56}
Contains information about an emoji.
An emoji source that does not support any emojis. Use this emoji source if you explicitly want to avo...
Definition: NoEmojis.cs:11
Task< IImageSource > GetImageSource(EmojiInfo Emoji)
Gets the image source of an emoji.
Task< IImageSource > GetImageSource(EmojiInfo Emoji, int Level)
Gets the image source of an emoji.
Task GenerateHTML(StringBuilder Output, EmojiInfo Emoji, bool EmbedImage)
Generates HTML for a given Emoji.
NoEmojis()
An emoji source that does not support any emojis.
Definition: NoEmojis.cs:15
bool EmojiSupported(EmojiInfo Emoji)
If the emoji is supported by the emoji source.
Task GenerateHTML(StringBuilder Output, EmojiInfo Emoji, int Level, bool EmbedImage)
Generates HTML for a given Emoji.
Interface for Emoji sources. Emoji sources provide emojis to content providers.
Definition: IEmojiSource.cs:10
Contains information about an emoji image.
Definition: IImageSource.cs:7