Package com.thed.model
Class Agent
java.lang.Object
com.thed.model.Agent
Value Object containing infomation of logged in ZBot (also called agent)
- Author:
- zephyrDev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
int
getToken()
int
hashCode()
boolean
void
void
setLastPing
(long lastPing) void
setMultiThreading
(boolean multiThreading) void
setRealtimeStatus
(String realtimeStatus) void
setStartDate
(long startDate) void
setStatus
(int status) void
void
toString()
-
Constructor Details
-
Agent
public Agent() -
Agent
- Parameters:
token
-agentHostAndIp
-- Throws:
UnknownHostException
-
-
Method Details
-
getAgentHostAndIp
- Returns:
- the agentHostAndIp
-
setAgentHostAndIp
- Parameters:
agentHostAndIp
- the agentHostAndIp to set
-
getLastPing
- Returns:
- the lastPing
-
setLastPing
- Parameters:
lastPing
- the lastPing to set
-
getToken
- Returns:
- the token
-
setToken
- Parameters:
token
- the token to set
-
getStartDate
- Returns:
- the startDate
-
setStartDate
- Parameters:
startDate
- the startDate to set
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status
- the status to set
-
getRealtimeStatus
-
setRealtimeStatus
-
getUserId
- Returns:
- the userId
-
setUserId
- Parameters:
userId
- the userId to set
-
hashCode
-
equals
-
toString
-
isMultiThreading
-
setMultiThreading
-