public void attendanceAvailable(Attendance att)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = att });
 }
 protected void ReceivePresence(Attendance presence)
 {
     if (Providers.Globals.conversationDetails.Slides.Select(s => s.id.ToString()).Contains(presence.location))
     {
         Dispatcher.adopt(delegate
         {
             constructPersonFromUsername(presence.author);
             var user = people[presence.author];
             if (presence.present)
             {
                 user.slideLocation = user.slideLocation.Union(new List<string> { presence.location }).Distinct().ToList();
             }
             else
             {
                 user.slideLocation = user.slideLocation.Where(sl => sl != presence.location).ToList();
             }
         });
     }
 }
 void IReceiveEvents.attendanceReceived(Attendance attendance)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = attendance });
 }