Genesys CTI User Forum > Genesys-related Development
Reporting SDK
hsujdik:
Ah, I just now realized you were getting the DN State. Try cast your StateValue as DNStatus and then get the Actions property to check if it suits what you need
carpio:
I have tried
[code]public void OnMessageReceived(object sender, EventArgs e)
{
IMessage message = ((MessageEventArgs)e).Message;
if (message.Name.Equals("EventInfo"))
{
EventInfo ev = (EventInfo)message;
DnStatus ds = (DnStatus)ev.StateValue;
MessageBox.Show(ds.ToString());
}
}[/code]
and:
[code]public void OnMessageReceived(object sender, EventArgs e)
{
IMessage message = ((MessageEventArgs)e).Message;
DnStatus ds = (DnStatus)message;
MessageBox.Show(ds.ToString());
}[/code]
But I always get a exception:
System.InvalidCastException was unhandled by user code
HResult=-2147467262
Message=Unable to cast object of type 'Genesyslab.Platform.Reporting.Protocols.StatServer.AgentStatus' to type 'Genesyslab.Platform.Reporting.Protocols.StatServer.DnStatus'.
hsujdik:
Maybe this might help you:
https://docs.genesys.com/Documentation/PSDK/9.0.x/Developer/GetAgentState
Navigation
[0] Message Index
[*] Previous page
Go to full version