From Bright Pattern Documentation
Jump to: navigation, search
Tracy (talk | contribs)
No edit summary
 
Tracy (talk | contribs)
No edit summary
Line 1: Line 1:
<translate>= Recent Interactions=
<translate>= Recent Interactions=
The list of [[agent-guide/HowtoRedialaPreviouslyDialedNumber|recent interactions]] for the logged user is available in the following property in ''AgentPlace'' after agent login:
The list of [[agent-guide/HowtoRedialaPreviouslyDialedNumber|recent interactions]] for the logged user is available in the following property in ''AgentPlace'' after agent login:
 
public SortedDictionary&lt;string, Recent&gt; recents;
::''public SortedDictionary&lt;string, Recent&gt; recents;''




The following code snippet shows how to sort the recent interactions according to the timestamp of the interactions:
The following code snippet shows how to sort the recent interactions according to the timestamp of the interactions:
List&lt;Recent&gt; recentList = _AgentPlace.recents.Values.ToList();
recentList.Sort((x, y) =&gt; x.timestamp.CompareTo(y.timestamp));
}


{|border="1" style="border-collapse:collapse" cellpadding="5"
|::''List&lt;Recent&gt; recentList = _AgentPlace.recents.Values.ToList();''
::''recentList.Sort((x, y) =&gt; x.timestamp.CompareTo(y.timestamp));''
|}






<center>[[desktop-integration-api-net-version-tutorial/Directory|< Previous]]  |  [[desktop-integration-api-net-version-tutorial/Favorites|Next >]]</center>
</translate>
</translate>

Revision as of 20:20, 13 May 2019

<translate>= Recent Interactions= The list of recent interactions for the logged user is available in the following property in AgentPlace after agent login:

public SortedDictionary<string, Recent> recents;


The following code snippet shows how to sort the recent interactions according to the timestamp of the interactions:

List<Recent> recentList = _AgentPlace.recents.Values.ToList();

recentList.Sort((x, y) => x.timestamp.CompareTo(y.timestamp));
}



</translate>

< Previous | Next >