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
-
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 classLivechatChatLogPath.ChatTimeoutReceiverReceiver for chat session timeout event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcountMessages(ChatLog.Type... types)Counts the number of messages of the specifiedChatLog.Typetypes in the chat logLivechatChatLogPathprotected voidfinalize()java.util.LinkedHashMap<java.lang.String,ChatLog>getData()Gets the path data in it's current statestatic LivechatChatLogPathgetInstance()Gets singleton instance ofLivechatChatLogPath-
Methods inherited from class com.zopim.android.sdk.data.Path
broadcast, broadcast, isClearRequired, notifyObservers
-
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
-
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:PathGets the path data in it's current state
-
countMessages
public int countMessages(ChatLog.Type... types)
Counts the number of messages of the specifiedChatLog.Typetypes in the chat logLivechatChatLogPath- Parameters:
types- of the chat log messages to count- Returns:
- count of the messages of specified types
-
-