Hi all,
we are trying to develop an email client in Genesys Demosrv. first we are establishing connection with Ixn Server(Interaction server) .when we add the media type email as a key value collection -for second parameter it is expecting an object in the following statement “medialist.addObject(“email”,0)” can u plz suggest and provide a solution for adding the media type.
code snippet
public boolean requestLogin(String strAgentId, String strPlaceid,
IxnSrvConnect ixnSrvConnect){
try{
KeyValueCollection medialist = new KeyValueCollection();
medialist.addObject(“email”,0);
InteractionServerProtocol inxProtocol = ixnSrvConnect.getinxProtocol();
RequestAgentLogin requestLogin =
RequestAgentLogin.create(101, strPlaceid, ReasonInfo.create());
requestLogin.setAgentId(strAgentId);
requestLogin.setMediaList(medialist);
Message message = inxProtocol.request(requestLogin);
if(message.messageId()== EventError.ID)
return false;
}catch(Exception e){
e.printStackTrace();
}
Thanks in advance