public TPOASDKResponse<string> getPublicKey() { TPOASDKResponse<string> resp = new TPOASDKResponse<string>(); try { string publicKey = string.Empty; resp.resultCode = platformKey.getPublicKey(out publicKey); if (resp.resultCode == 0) resp.result = publicKey; return resp; } catch (SoapHeaderException e) { resp.resultCode = ExceptionUtils.processSoapException(e); return resp; } }
public TPOASDKResponse<RecurrenceConfInfo> editRecurrenceConference(RecurrenceConfInfo scheduleConf, System.Nullable<System.DateTime> beginTime) { TPOASDKResponse<RecurrenceConfInfo> resp = new TPOASDKResponse<RecurrenceConfInfo>(); TPProfessionalConfMgrService confMgr = new TPProfessionalConfMgrService(appSetting); //UtilsSettings appSetting = new UtilsSettings(); confMgr.Header = appSetting.Header; try { //rsa = new RSA2048(platformKeyURL); if (null != scheduleConf.auxVideoFormat) { scheduleConf.auxVideoFormatSpecified = true; } if (null != scheduleConf.auxVideoProtocol) { scheduleConf.auxVideoProtocolSpecified = true; } if (null != scheduleConf.isRecording) { scheduleConf.isRecordingSpecified = true; } if (null != scheduleConf.isLiveBroadcast) { scheduleConf.isLiveBroadcastSpecified = true; } if (null != scheduleConf.status) { scheduleConf.statusSpecified = true; } for (int i = 0; i < scheduleConf.sites.Length; i++) { if (scheduleConf.sites[i].videoFormat != null) { scheduleConf.sites[i].videoFormatSpecified = true; } if (scheduleConf.sites[i].videoProtocol != null) { scheduleConf.sites[i].videoProtocolSpecified = true; } if (scheduleConf.sites[i].status != null) { scheduleConf.sites[i].statusSpecified = true; } } if (null != scheduleConf.frequency) { scheduleConf.frequencySpecified = true; } if (null != scheduleConf.interval) { scheduleConf.intervalSpecified = true; } if (scheduleConf.endDate != null) { scheduleConf.endDateSpecified = true; } //if (scheduleConf.password != null && scheduleConf.password != "") //{ // scheduleConf.password = rsa.RSAEncrypt(scheduleConf.password); //} //if (scheduleConf.chairmanPassword != null && scheduleConf.chairmanPassword != "") //{ // scheduleConf.chairmanPassword = rsa.RSAEncrypt(scheduleConf.chairmanPassword); //} int resultCode; RecurrenceConfInfo conferenceInfoEx; bool beginTimeSpecified = false; if (null != beginTime) { beginTimeSpecified = true; } resultCode = confMgr.editRecurrenceConference(scheduleConf, beginTime, beginTimeSpecified, out conferenceInfoEx); resp.resultCode = resultCode; resp.result = 0 == resultCode ? conferenceInfoEx : null; return resp; } catch (SoapHeaderException e) { int errorCode = ExceptionUtils.processSoapException(e); resp.resultCode = errorCode; return resp; } }
/// <summary> /// 召集或预约非周期性会议 /// </summary> /// <param name="scheduleConf"> /// 准备预约的会议参数,包含会场列表和参数,预约时 ConferenceInfoEx 必填参数包括: /// name:会议名称 /// string:会议开始时间 /// rate:速率 /// duration:会议时长 /// sites:会场信息列表 /// 其中会场列表参数中的 SiteInfoEx 必填参数为: /// uri 会场标识。当 uri 为空时,预约匿名会议。 ///</param> /// <returns>操作成功则 response.result返回预约成功后会议基本信息,包括系统分配的会议 ID,会议的接入码等信息。</returns> public TPOASDKResponse<ConferenceInfo> scheduleConf(ConferenceInfo scheduleConf) { TPOASDKResponse<ConferenceInfo> resp = new TPOASDKResponse<ConferenceInfo>(); TPProfessionalConfMgrService confMgr = new TPProfessionalConfMgrService(appSetting); //UtilsSettings appSetting = new UtilsSettings(); confMgr.Header = appSetting.Header; try { //rsa = new RSA2048(platformKeyURL); if (null != scheduleConf.auxVideoFormat) { scheduleConf.auxVideoFormatSpecified = true; } if (null != scheduleConf.auxVideoProtocol) { scheduleConf.auxVideoProtocolSpecified = true; } if (null != scheduleConf.isRecording) { scheduleConf.isRecordingSpecified = true; } if (null != scheduleConf.isLiveBroadcast) { scheduleConf.isLiveBroadcastSpecified = true; } if (null != scheduleConf.status) { scheduleConf.statusSpecified = true; } for(int i = 0;i<scheduleConf.sites.Length;i++) { if (scheduleConf.sites[i].videoFormat != null) { scheduleConf.sites[i].videoFormatSpecified = true; } if (scheduleConf.sites[i].videoProtocol != null) { scheduleConf.sites[i].videoProtocolSpecified = true; } if (scheduleConf.sites[i].status != null) { scheduleConf.sites[i].statusSpecified = true; } } //if (scheduleConf.password != null && scheduleConf.password != "") //{ // scheduleConf.password = rsa.RSAEncrypt(scheduleConf.password); //} //if (scheduleConf.chairmanPassword != null && scheduleConf.chairmanPassword != "") //{ // scheduleConf.chairmanPassword = rsa.RSAEncrypt(scheduleConf.chairmanPassword); //} int resultCode; ConferenceInfo conferenceInfoEx; resultCode = confMgr.scheduleConf(scheduleConf, out conferenceInfoEx); resp.resultCode = resultCode; resp.result = 0 == resultCode ? conferenceInfoEx : null; return resp; } catch (SoapHeaderException e) { int errorCode = ExceptionUtils.processSoapException(e); resp.resultCode = errorCode; return resp; } }