Author Topic: IWS - Get current status  (Read 4157 times)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
IWS - Get current status
« on: March 13, 2013, 01:52:12 PM »
Hi All,

have anyone experience with simply need of get current status of logged agent with ReasonCode (AttributeReason brand) via IWS DLLs?
Thx

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: IWS - Get current status
« Reply #1 on: March 14, 2013, 07:23:18 PM »
[quote author=Kubig link=topic=7712.msg33356#msg33356 date=1363182732]
....via IWS DLLs?
[/quote]
Hi

you mean inside the IWS custom extension code?
WBR Tim

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: IWS - Get current status
« Reply #2 on: March 14, 2013, 09:53:43 PM »
Yep, I have created own module with customize code. I am wondering how to get channel status with reason code (if exists) like in MyWorkspace tab in out-of-box IWS. I would like to do via IWS SDK ( this is why I wrote "DLL"), I won't use "low" level as PSDK.

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: IWS - Get current status
« Reply #3 on: March 15, 2013, 10:16:52 AM »
Well, Agent object (i mean in namespace Genesyslab.Desktop.Modules.Core.Model.Agents ) contain the MyState properties. You've tested it?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: IWS - Get current status
« Reply #4 on: March 15, 2013, 12:48:55 PM »
I have already finished - you are right, I was looking bad early.

But currently I try to solve other problem, how to check if agent is logged on email,chat or any other channel? I tried to use Genesyslab.Desktop.Modules.Core.Model.Agent.FirstMediaEmail.IsLogOn, but when the media is in opposite state, the property does not return anything
« Last Edit: March 15, 2013, 01:25:18 PM by Kubig »

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: IWS - Get current status
« Reply #5 on: March 15, 2013, 08:51:20 PM »
Because FirstMedia.... properties is a reference on IMedia object. Which of couse equal NULL if this media does't init by logged in process.