Beispiel #1
0
 public void AddParticipant(RoomParticipant participant)
 {
     if (!DoesParticipantExist(participant))
     {
         RoomParticipants.Add(participant);
     }
 }
Beispiel #2
0
        public void RemoveParticipant(RoomParticipant participant)
        {
            if (DoesParticipantExist(participant))
            {
                var existingParticipant = RoomParticipants.Single(x => x.ParticipantId == participant.ParticipantId);

                RoomParticipants.Remove(existingParticipant);
                UpdateStatus();
            }
        }
Beispiel #3
0
 public bool DoesParticipantExist(RoomParticipant participant)
 {
     return(RoomParticipants.Any(x => x.ParticipantId == participant.ParticipantId));
 }