public interface DataSource
void deleteObservers()
void clear()
This will clear each data path
Connection getConnection()
ConnectionPath
ConnectionPath.getData()
,
Connection
Profile getProfile()
LivechatProfilePath
LivechatProfilePath.getData()
,
Profile
LinkedHashMap<String,Agent> getAgents()
LivechatAgentsPath
LivechatAgentsPath.getData()
,
Agent
Map<String,Department> getDepartments()
LivechatDepartmentsPath
LivechatDepartmentsPath.getData()
,
Department
Account getAccount()
LivechatAccountPath
LivechatAccountPath.getData()
,
Account
LinkedHashMap<String,ChatLog> getChatLog()
LivechatChatLogPath
LivechatChatLogPath.getData()
,
ChatLog
Forms getForms()
LivechatFormsPath
LivechatFormsPath.getData()
,
Forms
@Nullable FileSending getFileSending()
LivechatFileSendingPath
LivechatFileSendingPath.getData()
,
FileSending
void addConnectionObserver(Observer observer)
ConnectionPath
Observer will be registered for broadcast updates on Connection
.
You can register ConnectionObserver
or Observer
.
observer
- to registervoid addProfileObserver(Observer observer)
LivechatProfilePath
Observer will be registered for broadcast updates on Profile
.
You can register ProfileObserver
or Observer
.
observer
- to registervoid addAgentsObserver(Observer observer)
LivechatAgentsPath
Observer will be registered for broadcast updates on Agent
.
You can register AgentsObserver
or Observer
.
observer
- to registervoid addDepartmentsObserver(Observer observer)
LivechatDepartmentsPath
Observer will be registered for broadcast updates on Department
.
You can register DepartmentsObserver
or Observer
.
observer
- to registervoid addAccountObserver(Observer observer)
LivechatAccountPath
Observer will be registered for broadcast updates on Account
.
You can register AccountObserver
or Observer
.
observer
- to registervoid addFormsObserver(Observer observer)
LivechatFormsPath
Observer will be registered for broadcast updates on Forms
.
You can register FormsObserver
or Observer
.
observer
- to registervoid addFileSendingObserver(Observer observer)
LivechatFileSendingPath
Observer will be registered for broadcast updates on FileSending
.
You can register FileSendingObserver
or Observer
.
observer
- to registervoid addChatLogObserver(Observer observer)
LivechatChatLogPath
Observer will be registered for broadcast updates on ChatLog
.
You can register ChatLogObserver
or Observer
.
observer
- to registervoid deleteConnectionObserver(Observer observer)
ConnectionPath
observer
- to removevoid deleteProfileObserver(Observer observer)
LivechatProfilePath
observer
- to removevoid deleteAgentsObserver(Observer observer)
LivechatAgentsPath
observer
- to removevoid deleteAccountObserver(Observer observer)
LivechatAccountPath
observer
- to removevoid deleteDepartmentsObserver(Observer observer)
LivechatDepartmentsPath
observer
- to removevoid deleteChatLogObserver(Observer observer)
LivechatDepartmentsPath
observer
- to removevoid deleteFormsObserver(Observer observer)
LivechatFormsPath
observer
- to remove