Chat SDK API demo is a Sndroid project that shows how easy it is to create your own chat UI that is backed by Zendesk Chat API. This demo uses Chat SDK Version 1.3.0.1. You can reference Chat API as a Gradle dependency:
compile group: 'com.zopim.android', name: 'sdk-api', version: '1.3.0.1'
- ChatModel.java
This class contains all the function calls to
ZendeskChatApi
. - ChatLogModel.java
This file is responsible for filterring events, determining if events are new and updates and converts them to UI chat events.
- ChatLogView.java
This class is a
RecyclerView.Adapter
and provides the data required for the UI. AgentMessageWrapper
,VisitorMessage
,AgentAttachmentWrapper
,VisitorAttachmentWrapper
Theses files represent the different type of chat messages the demo deals with.