Ejemplo n.º 1
0
 public bool UnRegisterAttendees(Participant[] users, int roomId)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
        public string GetAttendanceURL(Participant participant, int roomId)
        {
            string attendanceURL = "";

            var roomsApi = getRoomsApi();
            var response = roomsApi.GetAttendCodeWithEmail(getAuthHeader(), roomId, participant.Email);
            if (response.success)
            {
                string attendCode = response.data as string;
                attendanceURL = string.Format(getParameter("AttendanceURLFormat"), attendCode);
            }
            return attendanceURL;
        }
Ejemplo n.º 3
0
        public string RegisterAttendee(Participant participant, int roomId)
        {
            var roomsApi = getRoomsApi();

            var response = roomsApi.RegisterExternalAttendee(getAuthHeader(), roomId, participant.FirstName, participant.LastName, participant.Email, participant.Role);
            if (response.success)
            {
                return response.data.ToString();
            }
            else
            {
                _lastError = response.code.ToString();
            }
            return "";
        }
Ejemplo n.º 4
0
        public bool RegisterAttendees(Participant[] participants, string participantRole, int roomId)
        {
            var roomsApi = getRoomsApi();

            System.Text.StringBuilder externalAttendeesString = new StringBuilder();
            for (int i = 0; i < participants.Length; i++)
            {
                var u = participants[i];
                externalAttendeesString.AppendFormat("{0};{1};{2};{3}", u.FirstName, u.LastName, u.Email, u.Role);
                if (i < participants.Length - 1) externalAttendeesString.Append("\\n");
            }
            var response = roomsApi.RegisterAttendees(getAuthHeader(), roomId, "", externalAttendeesString.ToString(), "");
            if (!response.success)
            {
                _lastError = response.code.ToString();
            }
            return response.success;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Returns empty string if there is an error.
        /// </summary>
        /// <param name="user"></param>
        /// <param name="role"></param>
        /// <param name="virtualClassRemoteId"></param>
        /// <returns></returns>
        public string RegisterAndGetURL(Participant participant, int roomId)
        {
            string attendanceURL = "";
            var roomsApi = getRoomsApi();

            var response = roomsApi.RegisterExternalAttendee(getAuthHeader(), roomId, participant.FirstName, participant.LastName, participant.Email, participant.Role);
            if (response.success)
            {
                string attendCode = response.data.ToString();
                attendanceURL = string.Format(getParameter("AttendanceURLFormat"), attendCode);
            }
            else
            {
                _lastError = response.code.ToString();
            }
            return attendanceURL;
        }
Ejemplo n.º 6
0
 public bool IsRegistered(Participant user, int roomId)
 {
     string email = user.Email;
     var roomsApi = getRoomsApi();
     var response = roomsApi.GetAttendCodeWithEmail(getAuthHeader(), roomId, email);
     return response.success;
 }
Ejemplo n.º 7
0
 public string[] GetRegisteredSessions(Participant user)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 public string[] GetRegisteredSessions(Participant user)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
 public bool UnRegisterAttendee(Participant user, int roomId)
 {
     throw new NotImplementedException();
 }