From Bright Pattern Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
<translate>= Agent Login=
 
<translate>= Agent Login=
 
 
The ''AgentPlace'' object provides the following methods to log in to Agent Desktop for different [[agent-guide/SelectingaPhoneDevice|phone device types]]:
 
The ''AgentPlace'' object provides the following methods to log in to Agent Desktop for different [[agent-guide/SelectingaPhoneDevice|phone device types]]:
  
* For the softphone (''isSoftphone=true'') or default phone (''isSoftphone=false'') option,
+
== Softphone or Default Phone ==
 
+
For the softphone (''isSoftphone=true'') or default phone (''isSoftphone=false'') option:
::''public void loginOnDefaultPhone(string adHost, string loginId, string domain, string password, bool isSoftphone, bool force = false);''
+
public void loginOnDefaultPhone(string adHost, string loginId, string domain, string password, bool isSoftphone, bool force = false);
 
 
* For the internal phone (''isInternal=false'') or external phone (''isInternal=false'') option,
 
 
 
::''public void loginOnHardPhone(string adHost, string loginId, string domain, string password, string phoneNum, bool isInternal, bool force = false);''
 
 
 
* For a nailed connection (option "dial-in and keep line open"),
 
 
 
::''public void loginOnVirtualPhone(string adHost, string loginId, string domain, string password, bool force = false);''
 
  
* For the no phone option,
+
== Internal or External Phone ==
 +
For the internal phone (''isInternal=false'') or external phone (''isInternal=false'') option:
 +
public void loginOnHardPhone(string adHost, string loginId, string domain, string password, string phoneNum, bool isInternal, bool force = false);
  
::''public void loginNoPhone(string adHost, string loginId, string domain, string password, bool force = false);''
+
== Nailed Connection ==
 +
For a nailed connection (option "dial-in and keep line open"):
 +
public void loginOnVirtualPhone(string adHost, string loginId, string domain, string password, bool force = false);''
  
 +
== No Phone ==
 +
For the no phone option:
 +
public void loginNoPhone(string adHost, string loginId, string domain, string password, bool force = false);
  
 +
== Log In/Out Events and Methods ==
 
After authentication, the following event will be raised to indicate whether the login is successful:
 
After authentication, the following event will be raised to indicate whether the login is successful:
 
+
public event LoggedInCallback loggedInCallback;
::''public event LoggedInCallback loggedInCallback;''
 
  
  
 
The following method is used to log out:
 
The following method is used to log out:
 
+
public override ResultCode logout()
::''public override ResultCode logout()''
 
  
  
 
And the following event will be raised once logout is completed:
 
And the following event will be raised once logout is completed:
 +
public event LoggedOutCallback loggedOutCallback;
  
::''public event LoggedOutCallback loggedOutCallback;''
 
  
  
  
<center>[[desktop-integration-api-net-version-tutorial/ThreadingModel|< Previous]]  |  [[desktop-integration-api-net-version-tutorial/AgentState|Next >]]</center>
 
 
</translate>
 
</translate>

Revision as of 01:20, 7 May 2019

• 5.19 • 5.2 • 5.3 • 5.8

Agent Login

The AgentPlace object provides the following methods to log in to Agent Desktop for different phone device types:

Softphone or Default Phone

For the softphone (isSoftphone=true) or default phone (isSoftphone=false) option:

public void loginOnDefaultPhone(string adHost, string loginId, string domain, string password, bool isSoftphone, bool force = false);

Internal or External Phone

For the internal phone (isInternal=false) or external phone (isInternal=false) option:

public void loginOnHardPhone(string adHost, string loginId, string domain, string password, string phoneNum, bool isInternal, bool force = false);

Nailed Connection

For a nailed connection (option "dial-in and keep line open"):

public void loginOnVirtualPhone(string adHost, string loginId, string domain, string password, bool force = false);

No Phone

For the no phone option:

public void loginNoPhone(string adHost, string loginId, string domain, string password, bool force = false);

Log In/Out Events and Methods

After authentication, the following event will be raised to indicate whether the login is successful:

public event LoggedInCallback loggedInCallback;


The following method is used to log out:

public override ResultCode logout()


And the following event will be raised once logout is completed:

public event LoggedOutCallback loggedOutCallback;


< Previous | Next >