Hi,
I am trying to create a drop down menu with all available user statuses. So I created an instance of the `UserStatusList()` class to listened to the `WatchedObjectsChanged` event to keep the client updated with the current status. like so
var status = new UserStatusList(GetPeopleManager());
status.WatchedObjectsChanged += SessionUserStatusChanged;
status.StartWatching(new string[] { "my username" });
But, how can I get a list of all available statuses the user can select from to construct the status menu?
Also, how do I get the current user's status from the `SessionUserStatusChanged` event handler?
private void SessionUserStatusChanged(Object sender, WatchedObjectsEventArgs<UserStatusProperty> e)
{
var username = GetUser.Identity.Name;
ReadOnlyCollection<UserStatusProperty> props = e.Changed[username];
// How can I get the the current status of username
}