Exemplo n.º 1
0
        /// <summary>
        /// End the meeting
        /// </summary>
        /// <param name="meetingId"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public Response End(string meetingId, string password)
        {
            var qb = new QueryStringBuilder
            {
                { "meetingID", meetingId },
                { "password", password },
            };

            qb.Add("checksum", GenerateChecksum("end", qb.ToString()));
            return(Response.Parse <Response>(HttpGet(Url + "end?" + qb)));
        }
Exemplo n.º 2
0
        public GetRecordingsResponse GetRecordings(string meetingId = null)
        {
            var qb = new QueryStringBuilder();

            if (!string.IsNullOrWhiteSpace(meetingId))
            {
                qb.Add("meetingId", meetingId);
            }
            qb.Add("checksum", GenerateChecksum("getRecordings", qb.ToString()));
            return(Response.Parse <GetRecordingsResponse>(HttpGet(Url + "getRecordings?" + qb)));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Join the meeting, user role depend on the password
        /// </summary>
        /// <param name="meetingId">meeiting id</param>
        /// <param name="name">user's name</param>
        /// <param name="password">meeting password</param>
        /// <param name="redirect"></param>
        /// <returns></returns>
        public string Join(string meetingId, string name, string password, bool redirect = true)
        {
            var qb = new QueryStringBuilder
            {
                { "fullName", name },
                { "meetingID", meetingId },
                { "password", password },
                { "redirect", redirect.ToString().ToLower() }
            };

            qb.Add("checksum", GenerateChecksum("join", qb.ToString()));
            return(Url + "join?" + qb);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Create a meeting room
        /// </summary>
        /// <param name="meetingId">The meetings Id</param>
        /// <param name="name">Name of the meeting</param>
        /// <param name="attendeePassword">attendee password</param>
        /// <param name="moderatorPassword">moderator password</param>
        /// <param name="record">allow recording</param>
        /// <param name="allowStartStopRecording">allow start/stop recording</param>
        /// <param name="autoStartRecording">start recording on start</param>
        /// <param name="voiceBridge">voice bridge</param>
        /// <param name="welcome">welcome message</param>
        /// <param name="logoutUrl">redirect url when logout</param>
        /// <returns></returns>
        public CreateResponse Create(string meetingId, string name, string attendeePassword, string moderatorPassword,
                                     bool record     = true, bool allowStartStopRecording = true, bool autoStartRecording = false,
                                     int voiceBridge = 76894, string welcome              = null, string logoutUrl = null)
        {
            var qb = new QueryStringBuilder
            {
                { "meetingID", meetingId },
                { "name", name },
                { "attendeePW", attendeePassword },
                { "moderatorPW", moderatorPassword },
                { "record", record.ToString() },
                { "allowStartStopRecording", allowStartStopRecording.ToString() },
                { "autoStartRecording", autoStartRecording.ToString() },
                { "voiceBridge", voiceBridge.ToString() },
                { "welcome", welcome },
                { "logoutURL", logoutUrl },
            };

            qb.Add("checksum", GenerateChecksum("create", qb.ToString()));
            return(Response.Parse <CreateResponse>(HttpGet(Url + "create?" + qb)));
        }