In Roster.java, I noticed that there’‘s no way I can retrieve the user’'s resources and presences. This information is stored in the Map in presenceMap.get(key). Ie, Map userPresences = (Map) presenceMap.get(key);
There’'s a method getPresences(), but that returns only the presences, I want the resources as well.
I have 2 choices:
(1) Modify fireRosterPresenceEvent() to pass the username AND resource.
(2) Add a getter method for presenceMap.get(key);