Reorganized properties in Emoji.cs

This commit is contained in:
RogueException
2017-06-29 18:06:12 -03:00
parent 224d0403db
commit 394e0aa4d1

View File

@@ -6,6 +6,14 @@
public class Emoji : IEmote public class Emoji : IEmote
{ {
// TODO: need to constrain this to unicode-only emojis somehow // TODO: need to constrain this to unicode-only emojis somehow
/// <summary>
/// The unicode representation of this emote.
/// </summary>
public string Name { get; }
public override string ToString() => Name;
/// <summary> /// <summary>
/// Creates a unicode emoji. /// Creates a unicode emoji.
/// </summary> /// </summary>
@@ -15,13 +23,6 @@
Name = unicode; Name = unicode;
} }
/// <summary>
/// The unicode representation of this emote.
/// </summary>
public string Name { get; }
public override string ToString() => Name;
public override bool Equals(object other) public override bool Equals(object other)
{ {
if (other == null) return false; if (other == null) return false;