-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉Release 1.3,阅后即焚2.2,阅后即焚最终版即将发布(双方阅后即焚等功能),表情Emoji接口即将发布。
- Loading branch information
1 parent
cf10ac7
commit d5c1c5d
Showing
8 changed files
with
122 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/haohanyh/linmengjia/nearlink/nlchat/fun/ChatCore/Emoji/Emoji.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.haohanyh.linmengjia.nearlink.nlchat.fun.ChatCore.Emoji; | ||
|
||
public class Emoji { | ||
private String code; | ||
private String shortUUID; | ||
|
||
public Emoji(String code, String shortUUID) { | ||
this.code = code; | ||
this.shortUUID = shortUUID; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getShortUUID() { | ||
return shortUUID; | ||
} | ||
|
||
public void setShortUUID(String shortUUID) { | ||
this.shortUUID = shortUUID; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...in/java/com/haohanyh/linmengjia/nearlink/nlchat/fun/ChatCore/Emoji/EmojiUtilsForCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.haohanyh.linmengjia.nearlink.nlchat.fun.ChatCore.Emoji; | ||
|
||
public class EmojiUtilsForCode { | ||
private Emoji[] emojis; | ||
|
||
public EmojiUtilsForCode() { | ||
emojis = new Emoji[] { | ||
|
||
|
||
new Emoji("U+1F600", "E00000"), // 😀 | ||
|
||
}; | ||
} | ||
|
||
public Emoji[] getEmojis() { | ||
return emojis; | ||
} | ||
|
||
public Emoji getEmojiByShortUUID(String shortUUID) { | ||
for (Emoji emoji : emojis) { | ||
if (emoji.getShortUUID().equals(shortUUID)) { | ||
return emoji; | ||
} | ||
} | ||
return null; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters