Exemplo n.º 1
0
        private static void AddReciepient(List <Recipient> toRecipientsList, string r)
        {
            var emailAddress = new Microsoft.Graph.EmailAddress
            {
                Address = r,
            };

            var toRecipients = new Recipient
            {
                EmailAddress = emailAddress,
            };

            toRecipientsList.Add(toRecipients);
        }
Exemplo n.º 2
0
 public EmailAddress(Microsoft.Graph.EmailAddress emailAddress)
 {
     Name    = emailAddress.Name;
     Address = emailAddress.Address;
 }
Exemplo n.º 3
0
        public static string GenerateMeetingXML(string meetingSubject, List <string> names, List <string> emails, string startTime, string duration,
                                                WebexHostInfo hostInfo, Microsoft.Graph.EmailAddress hostDelegate = default)
        {
            string strXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";

            strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n";
            strXML += "<header>\r\n";
            strXML += "<securityContext>\r\n";
            strXML += $"<webExID>{hostInfo.ID}</webExID>\r\n";
            strXML += $"<password>{hostInfo.Password}</password>\r\n";
            strXML += $"<siteName>{hostInfo.Company}</siteName>\r\n";
            strXML += $"<email>{hostInfo.Email}</email>\r\n";
            strXML += "</securityContext>\r\n";
            strXML += "</header>\r\n";
            strXML += "<body>\r\n";
            strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.meeting.CreateMeeting\">\r\n";
            strXML += "<accessControl>\r\n";
            strXML += "<meetingPassword>pZGiw4JU</meetingPassword>\r\n";
            strXML += "</accessControl>\r\n";
            strXML += "<metaData>\r\n";
            strXML += "<confName>" + meetingSubject + "</confName>\r\n";
            strXML += "<agenda>Test</agenda>\r\n";
            strXML += "</metaData>\r\n";
            strXML += "<participants>\r\n";
            strXML += "<maxUserNumber>10</maxUserNumber>\r\n";
            strXML += "<attendees>\r\n";
            strXML += GenerateAttendeeElement(names, emails, hostDelegate.Address);
            strXML += "</attendees>\r\n";
            strXML += "</participants>\r\n";
            strXML += "<enableOptions>\r\n";
            strXML += "<chat>true</chat>\r\n";
            strXML += "<poll>true</poll>\r\n";
            strXML += "<audioVideo>true</audioVideo>\r\n";
            strXML += "<supportE2E>TRUE</supportE2E>\r\n";
            strXML += "<autoRecord>TRUE</autoRecord>\r\n";
            strXML += "</enableOptions>\r\n";
            strXML += "<schedule>\r\n";
            strXML += "<startDate>";
            strXML += startTime;
            strXML += "</startDate>\r\n";
            strXML += "<openTime>900</openTime>\r\n";
            strXML += "<joinTeleconfBeforeHost>true</joinTeleconfBeforeHost>\r\n";
            strXML += "<duration>";
            strXML += duration;
            strXML += "</duration>\r\n";
            strXML += "</schedule>\r\n";
            strXML += "<telephony>\r\n";
            strXML += "<telephonySupport>CALLIN</telephonySupport>\r\n";
            strXML += "<extTelephonyDescription>";
            strXML += "Call 1-800-555-1234, Passcode 98765";
            strXML += "</extTelephonyDescription>\r\n";
            strXML += "</telephony>\r\n";
            strXML += "<attendeeOptions>";
            strXML += "<emailInvitations>TRUE</emailInvitations>\r\n";
            strXML += "</attendeeOptions>\r\n";
            strXML += "</bodyContent>\r\n";
            strXML += "</body>\r\n";
            strXML += "</serv:message>\r\n";

            return(strXML);
        }