/// <summary> /// Creates a new <see cref="ClassroomModel"/> as a member of the given <see cref="ProtocolModel"/>, /// with the given Human Name. /// </summary> public ClassroomModel(ProtocolModel protocol, string humanName, ClassroomModelType classroomModelType) { this.m_Protocol = protocol; this.m_ClassroomModelType = classroomModelType; this.m_Participants = new ParticipantCollection(this, "Participants"); this.m_Presentations = new PresentationCollection(this, "Presentations"); this.m_HumanName = humanName; this.m_Connected = false; this.m_RtpEndPoint = null; }
public RTPClassroomManager(PresenterModel model, RTPConnectionManager connection, string humanName, IPEndPoint endPoint, bool advertisedClassroom) { this.m_Model = model; this.m_AdvertisedClassroom = advertisedClassroom; this.m_IPEndPoint = endPoint; ClassroomModelType classroomType = ClassroomModelType.RTPStatic; if (m_AdvertisedClassroom) { this.m_ClassroomName = humanName; classroomType = ClassroomModelType.Dynamic; } else { this.m_ClassroomName = humanName + " (" + m_IPEndPoint.Address.ToString() + ")"; } this.m_Classroom = new ClassroomModel(connection.Protocol, m_ClassroomName, classroomType); this.m_Classroom.RtpEndPoint = this.m_IPEndPoint; this.m_Classroom.Changing["Connected"].Add(new PropertyEventHandler(this.HandleConnectedChanging)); }