- Joined
- Dec 22, 2021
- Messages
- 1
- Reaction score
- 0
Good morning,
I tried to get the status of the agent (Available, Busy, Away, Do Not Disturb, Lunch, Business Trip).
By using these codes:
using System;
using TCX.Configuration;
public class ExtensionStateHelper
{
public string IsThereAnyFreeExtension()
{
Extension ex = (Extension)PhoneSystem.Root.GetDNByNumber("1001");
FwdProfile p = ex.get_CurrentProfile();
res = p.get_CustomMessage();
return res;
}
}
but get some errors:
:[20585..20603)E: (491,19)-(491,37): Error CS0571: 'Extension.CurrentProfile.get': cannot explicitly call operator or accessor
FwdProfile p = ex.get_CurrentProfile();
^^^^^^^^^^^^^^^^^^
:[20616..20633)E: (492,8)-(492,25): Error CS0571: 'FwdProfile.CustomMessage.get': cannot explicitly call operator or accessor
res = p.get_CustomMessage();
^^^^^^^^^^^^^^^^^
:[22238..22326)W: (525,78)-(525,166): Warning CS0618: 'PredictiveDialerManager.PredictiveDialerManager(string, bool)' is obsolete: 'Use PredictiveDialerManager(dynamic ps, string queueExtension, bool isOptimizedForAgents)'
PredictiveDialerManager predictiveDialerManager = new PredictiveDialerManager(predictiveDialerQueue, isPredictiveDialerOptimizedForAgents);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:[24401..24415)W: (571,35)-(571,49): Warning CS0414: The field 'Callflow.Dialer.onlineServices' is assigned but its value is never used
private OnlineServices onlineServices = null;
^^^^^^^^^^^^^^
I tried to get the status of the agent (Available, Busy, Away, Do Not Disturb, Lunch, Business Trip).
By using these codes:
using System;
using TCX.Configuration;
public class ExtensionStateHelper
{
public string IsThereAnyFreeExtension()
{
Extension ex = (Extension)PhoneSystem.Root.GetDNByNumber("1001");
FwdProfile p = ex.get_CurrentProfile();
res = p.get_CustomMessage();
return res;
}
}
but get some errors:
:[20585..20603)E: (491,19)-(491,37): Error CS0571: 'Extension.CurrentProfile.get': cannot explicitly call operator or accessor
FwdProfile p = ex.get_CurrentProfile();
^^^^^^^^^^^^^^^^^^
:[20616..20633)E: (492,8)-(492,25): Error CS0571: 'FwdProfile.CustomMessage.get': cannot explicitly call operator or accessor
res = p.get_CustomMessage();
^^^^^^^^^^^^^^^^^
:[22238..22326)W: (525,78)-(525,166): Warning CS0618: 'PredictiveDialerManager.PredictiveDialerManager(string, bool)' is obsolete: 'Use PredictiveDialerManager(dynamic ps, string queueExtension, bool isOptimizedForAgents)'
PredictiveDialerManager predictiveDialerManager = new PredictiveDialerManager(predictiveDialerQueue, isPredictiveDialerOptimizedForAgents);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:[24401..24415)W: (571,35)-(571,49): Warning CS0414: The field 'Callflow.Dialer.onlineServices' is assigned but its value is never used
private OnlineServices onlineServices = null;
^^^^^^^^^^^^^^
