Package com.zopim.android.sdk.data
Class LivechatChatLogPath
- java.lang.Object
-
- java.util.Observable
-
- com.zopim.android.sdk.data.Path<java.util.LinkedHashMap<java.lang.String,ChatLog>>
-
- com.zopim.android.sdk.data.LivechatChatLogPath
-
- All Implemented Interfaces:
- ObservableTrigger
public class LivechatChatLogPath extends Path<java.util.LinkedHashMap<java.lang.String,ChatLog>>
Chat log path definitionAllows subscription to chat log broadcast updates and retrieval of the current chat event log. If there is nobody to listen this path it will not emit any broadcasts.
- See Also:
ChatLog
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
LivechatChatLogPath.ChatTimeoutReceiver
Receiver for chat session timeout event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
countMessages(ChatLog.Type... types)
Counts the number of messages of the specifiedChatLog.Type
types in the chat logLivechatChatLogPath
java.util.LinkedHashMap<java.lang.String,ChatLog>
getData()
Gets the path data in it's current statestatic LivechatChatLogPath
getInstance()
Gets singleton instance ofLivechatChatLogPath
-
Methods inherited from class com.zopim.android.sdk.data.Path
addObserver, broadcast, broadcast, deleteObserver, deleteObservers, finalize, isClearRequired, notifyObservers, trigger
-
-
-
-
Method Detail
-
getInstance
public static LivechatChatLogPath getInstance()
Gets singleton instance ofLivechatChatLogPath
- Returns:
- chat log path instance
-
getData
public java.util.LinkedHashMap<java.lang.String,ChatLog> getData()
Description copied from class:Path
Gets the path data in it's current state
-
countMessages
public int countMessages(ChatLog.Type... types)
Counts the number of messages of the specifiedChatLog.Type
types in the chat logLivechatChatLogPath
- Parameters:
types
- of the chat log messages to count- Returns:
- count of the messages of specified types
-
-