示例#1
0
 /// <summary>
 /// To Join in the Existing Meeting
 /// </summary>
 /// <param name="MeetingName">To Join in the ExistingMeeting with the Specified MeetingName</param>
 /// <param name="MeetingId">To Join in the ExistingMeeting with the Specified MeetingId</param>
 /// <param name="Password">To Join in the ExistingMeeting with the Specified ModeratorPW/AttendeePW</param>
 /// <param name="ShowInBrowser">If its true,will Show the Meeting UI in the Browser </param>
 /// <returns></returns>
 public string JoinMeeting(string MeetingName, string MeetingId, string Password, bool ShowInBrowser)
 {
     try
     {
         var strParameters   = "fullName=" + MeetingName + "&meetingID=" + MeetingId + "&password="******"join" + strParameters + StrSalt);
         if (!ShowInBrowser)
         {
             var request = (HttpWebRequest)WebRequest.Create(
                 StrServerIpAddress + "api/join?" + strParameters + "&checksum=" + strSha1CheckSum);
             var response = (HttpWebResponse)request.GetResponse();
             var sr       = new StreamReader(response.GetResponseStream());
             return(sr.ReadToEnd());
         }
         else
         {
             Process.Start(StrServerIpAddress + "api/join?" + strParameters + "&checksum=" + strSha1CheckSum);
             return("Showed Successfully");
         }
     }
     catch (Exception ex)
     {
         _objclsLog.Write(ex.Message);
         return(null);
     }
 }
示例#2
0
 /// <summary>
 /// To Get the relavant information about the Meeting
 /// </summary>
 /// <param name="MeetingId">To Get the relevant information about the Meeting with the Specified MeetingId</param>
 /// <param name="ModeratorPassword">To Get the relevant information about the Meeting with the Specified ModeratorPW</param>
 /// <returns></returns>
 public DataTable GetMeetingInfo(string MeetingId, string ModeratorPassword)
 {
     try
     {
         var strParameters   = "meetingID=" + MeetingId + "&password="******"getMeetingInfo" + strParameters + StrSalt);
         var request         = (HttpWebRequest)WebRequest.Create(
             StrServerIpAddress + "api/getMeetingInfo?" + strParameters + "&checksum=" + strSha1CheckSum);
         var response = (HttpWebResponse)request.GetResponse();
         var sr       = new StreamReader(response.GetResponseStream());
         var ds       = new DataSet("DataSet1");
         ds.ReadXml(sr);
         return(ds.Tables[0]);
     }
     catch (Exception ex)
     {
         _objclsLog.Write(ex.Message);
         return(null);
     }
 }
示例#3
0
 /// <summary>
 /// To Get all the Meeting's Information running in the Server
 /// </summary>
 /// <returns></returns>
 public DataTable GetMeetings()
 {
     try
     {
         var r               = new Random(0);
         var strParameters   = "random=" + r.Next(100);
         var strSha1CheckSum = ClsData.GetSha1("getMeetings" + strParameters + StrSalt);
         var request         = (HttpWebRequest)WebRequest.Create(
             StrServerIpAddress + "api/getMeetings?" + strParameters + "&checksum=" + strSha1CheckSum);
         var response = (HttpWebResponse)request.GetResponse();
         var sr       = new StreamReader(response.GetResponseStream());
         var ds       = new DataSet("DataSet1");
         ds.ReadXml(sr);
         return(ds.Tables[0]);
     }
     catch (Exception ex)
     {
         _objclsLog.Write(ex.Message);
         return(null);
     }
 }
示例#4
0
 /// <summary>
 /// Creates the Meeting
 /// </summary>
 /// <param name="MeetingName">Creates the Meeting with the Specified MeetingName</param>
 /// <param name="MeetingId">Creates the Meeting with the Specified MeetingId</param>
 /// <param name="attendeePw">Creates the Meeting with the Specified AttendeeePassword</param>
 /// <param name="moderatorPw">Creates the Meeting with the Specified ModeratorPassword</param>
 /// <returns></returns>
 public DataTable CreateMeeting(string MeetingName, string MeetingId, string attendeePw, string moderatorPw)
 {
     try
     {
         var strParameters = "name=" + MeetingName + "&meetingID=" + MeetingId + "&attendeePW=" + attendeePw +
                             "&moderatorPW=" + moderatorPw;
         var strSha1CheckSum = ClsData.GetSha1("create" + strParameters + StrSalt);
         var request         =
             (HttpWebRequest)WebRequest.Create(StrServerIpAddress + "api/create?" + strParameters +
                                               "&checksum=" + strSha1CheckSum);
         var response = (HttpWebResponse)request.GetResponse();
         var sr       = new StreamReader(response.GetResponseStream());
         var ds       = new DataSet("DataSet1");
         ds.ReadXml(sr);
         return(ds.Tables[0]);
     }
     catch (Exception ex)
     {
         _objclsLog.Write(ex.Message);
         return(null);
     }
 }