Interface IAgentInCampaign
- All Superinterfaces:
IDisposable, IEntity
Represents the operations performed by an agent in a campaign.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the AgentInCampaignCannotOpenListener.voidRegisters the AgentInCampaignErrorListener.voidRegisters the AgentInCampaignOperationListener.voidRegisters the AgentInCampaignRequestListener.voidRegisters the CampaignMessageListener.voidRegisters the CampaignStateChangedListener.voidRegisters the ScriptChangedListener.voidchangeNotReadyReason(String reason) Changes the agent not ready reason in the campaign.voidclose()Closes the campaign of the agent.getAgent()Associated agent.Operations that the agent can perform in the campaign.Associated campaign.booleanTrue if the campaign has a valid switch.getInfo()Gets information about the state of the agent in the campaign.getInfoMedia(int mediaId) Gets information about the media state of the agent in the campaign.booleanTrue if the agent has the campaign open.booleanTrue if the agent is ready in the campaign.booleanTrue if the campaign has a request running.booleanTrue if the agent is signed in to the campaign.Gui name of the not ready reason.Name of the not ready reason.intNumber of current data transactions.voidopen()Opens the campaign of the agent.voidUnregisters the AgentInCampaignCannotOpenListener.voidUnregisters the AgentInCampaignErrorListener.voidUnregisters the AgentInCampaignOperationListener.voidUnregisters the AgentInCampaignRequestListener.voidUnregisters the CampaignMessageListener.voidUnregisters the CampaignStateChangedListener.voidUnregisters the ScriptChangedListener.voidsetNotReady(String reason) Sets the agent not ready in the campaign.voidsetReady(boolean synchronous) Sets the agent ready in the open campaign.voidsignOff(boolean synchronous) Signs off the agent from the campaign.voidsignOn(boolean synchronous) Signs in the agent in the campaign.Starts a data transaction.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
addAgentInCampaignCannotOpenListener
Registers the AgentInCampaignCannotOpenListener.- Parameters:
listener- Event listener to add.
-
removeAgentInCampaignCannotOpenListener
Unregisters the AgentInCampaignCannotOpenListener.- Parameters:
listener- Event listener to remove.
-
addAgentInCampaignErrorListener
Registers the AgentInCampaignErrorListener.- Parameters:
listener- Event listener to add.
-
removeAgentInCampaignErrorListener
Unregisters the AgentInCampaignErrorListener.- Parameters:
listener- Event listener to remove.
-
addAgentInCampaignOperationListener
Registers the AgentInCampaignOperationListener.- Parameters:
listener- Event listener to add.
-
removeAgentInCampaignOperationListener
Unregisters the AgentInCampaignOperationListener.- Parameters:
listener- Event listener to remove.
-
addAgentInCampaignRequestListener
Registers the AgentInCampaignRequestListener.- Parameters:
listener- Event listener to add.
-
removeAgentInCampaignRequestListener
Unregisters the AgentInCampaignRequestListener.- Parameters:
listener- Event listener to remove.
-
addCampaignMessageListener
Registers the CampaignMessageListener.- Parameters:
listener- Event listener to add.
-
removeCampaignMessageListener
Unregisters the CampaignMessageListener.- Parameters:
listener- Event listener to remove.
-
addCampaignStateChangedListener
Registers the CampaignStateChangedListener.- Parameters:
listener- Event listener to add.
-
removeCampaignStateChangedListener
Unregisters the CampaignStateChangedListener.- Parameters:
listener- Event listener to remove.
-
addScriptChangedListener
Registers the ScriptChangedListener.- Parameters:
listener- Event listener to add.
-
removeScriptChangedListener
Unregisters the ScriptChangedListener.- Parameters:
listener- Event listener to remove.
-
changeNotReadyReason
void changeNotReadyReason(String reason) throws Exception, altitude.integrationServer.exceptions.ISException Changes the agent not ready reason in the campaign.- Parameters:
reason- String with the not ready reason to send to the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
close
-
getAgent
-
getAllowedOperations
AgentInCampaignCanDo getAllowedOperations() throws Exception, altitude.integrationServer.exceptions.ISExceptionOperations that the agent can perform in the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCampaign
-
getHasValidSwitch
-
getInfo
Gets information about the state of the agent in the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInfoMedia
AgentInCampaignMediaInfo getInfoMedia(int mediaId) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about the media state of the agent in the campaign.- Parameters:
mediaId- Identifier of the media.- Returns:
- An
AgentInCampaignMediaInfoobject. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getIsOpen
-
getIsReady
-
getIsRequestRunning
-
getIsSignedOn
-
getNotReadyReasonGuiName
-
getNotReadyReasonName
-
getNumberOfDataTransactions
-
open
-
setNotReady
-
setReady
-
signOff
-
signOn
-
startDataTransaction
-