Last active
August 4, 2020 10:01
-
-
Save EnesKaraosman/a1fbb74b210cc668ad2cbb28a5816013 to your computer and use it in GitHub Desktop.
ChatMessageKind
This file contains hidden or 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
enum ImageLoadingKind { | |
case local(UIImage) | |
case remote(URL) | |
} | |
enum ChatMessageKind { | |
case text(String) | |
case image(ImageLoadingKind) | |
case location(LocationItem) | |
case contact(ContactItem) | |
case quickReply([QuickReplyItem]) | |
case carousel([CarouselItem]) | |
... // case audio(AudioItem) | |
... // case video(VideoItem) | |
.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment