setUserIdleTime
Some tooltip text!
• 1 minute to read
• 1 minute to read
Description
Sets the number of seconds a user has been idle (no inputs from keyboard or mouse). This is used to automatically set users to idle so they do not receive any new chat sessions.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key |
| idleTime | Seconds user has been idle |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
Example
ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.login("egon", "norges bank", out sessionKey);
if (errorCode.Equals("0"))
{
int it = GetUserIdleTime() //your own method for finding idle time
ticketService.setUserIdleTime(sessionKey, idleTime);
}