From Bright Pattern Documentation
No edit summary |
Updated via BpDeleteTranslateTags script |
||
| Line 1: | Line 1: | ||
= 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<string, Recent> recents; | public SortedDictionary<string, Recent> recents; | ||
| Line 9: | Line 9: | ||
recentList.Sort((x, y) => x.timestamp.CompareTo(y.timestamp)); | recentList.Sort((x, y) => x.timestamp.CompareTo(y.timestamp)); | ||
} | } | ||
Latest revision as of 04:02, 29 May 2024
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));
}