Advertisement
rahul0611

Get Agents

May 25th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1.     AgentSession agentSession = new AgentSession("demo@workgroup.rsweb37", connection);
  2.  
  3.                     agentSession.setOnline(true);
  4.  
  5.                     agentSession.addOfferListener(new OfferListenereClass());
  6.  
  7.                  
  8.  
  9.  
  10.                     AgentRoster agentRoster = agentSession.getAgentRoster();
  11.  
  12.  
  13.                     JOptionPane.showConfirmDialog(null, agentRoster.getAgents());
  14.  
  15. // Presence of the Agent
  16.  
  17.  
  18.  
  19.     JOptionPane.showConfirmDialog(null, agentSession.getAgentRoster().getPresence("demo@rsweb37"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement