public static void UpdatePresenceListing(MeTLPresence presence) { if (!PresenceListing.ContainsKey(presence.Who)) { if(presence.Joining) PresenceListing.Add(presence.Who, new List<string> {presence.Where}); } else { if (presence.Joining) { var list = PresenceListing[presence.Who]; list.Add(presence.Where); PresenceListing[presence.Who] = list.Distinct().ToList(); } else { PresenceListing[presence.Who].Remove(presence.Where); } } }
public void receivePresence(MeTLPresence presence) { }
void IReceiveEvents.receivePresence(MeTLPresence presence) { PresenceAvailable(this, new PresenceAvailableEventArgs {presence = presence}); }