Пример #1
0
        /// <summary>
        /// Fetch a role by objectId or name and fill the properties (if found) of the current class instance with what's found
        /// </summary>
        /// <param name="pObjectId">
        /// GUID of the role to find.
        /// </param>
        /// <returns>
        /// WebCallResults instance.
        /// </returns>
        private WebCallResult GetVmsServer(string pObjectId)
        {
            string strUrl = HomeServer.BaseUrl + "vmsservers/" + pObjectId;

            //issue the command to the CUPI interface
            return(HomeServer.FillObjectWithRestGetResults(strUrl, this));
        }
Пример #2
0
        /// <summary>
        /// Fills the current instance of ConfigurationSetting in with properties fetched from the server.
        /// </summary>
        /// <param name="pFullName">
        /// Full name of the configuraiton setting (i.e. "System.Notifier.TaskManager.TaskMaxThreadWaitMinutes") to fetch.
        /// </param>
        /// <returns>
        /// Instance of the WebCallResults class containing details of the items sent and recieved from the CUPI interface.
        /// </returns>
        private WebCallResult GetConfigurationValue(string pFullName)
        {
            string strUrl = string.Format("{0}configurationvalues/{1}", HomeServer.BaseUrl, pFullName);

            return(HomeServer.FillObjectWithRestGetResults(strUrl, this));
        }
Пример #3
0
        /// <summary>
        /// Fetch a role by objectId or name and fill the properties (if found) of the current class instance with what's found
        /// </summary>
        /// <param name="pObjectId">
        /// GUID of the role to find.
        /// </param>
        /// <returns>
        /// WebCallResults instance.
        /// </returns>
        private WebCallResult GetPortGroupTemplate(string pObjectId)
        {
            string strUrl = HomeServer.BaseUrl + "portgrouptemplates/" + pObjectId;

            return(HomeServer.FillObjectWithRestGetResults(strUrl, this));
        }
Пример #4
0
        /// <summary>
        /// Fetch a role by objectId or name and fill the properties (if found) of the current class instance with what's found
        /// </summary>
        /// <param name="pObjectId">
        /// GUID of the role to find.
        /// </param>
        /// <returns>
        /// WebCallResults instance.
        /// </returns>
        private WebCallResult GetRtpCodecDef(string pObjectId)
        {
            string strUrl = HomeServer.BaseUrl + "rtpcodecdefs/" + pObjectId;

            return(HomeServer.FillObjectWithRestGetResults(strUrl, this));
        }
Пример #5
0
        /// <summary>
        /// Fetch a role by objectId or name and fill the properties (if found) of the current class instance with what's found
        /// </summary>
        /// <param name="pObjectId">
        /// GUID of the role to find.
        /// </param>
        /// <returns>
        /// WebCallResults instance.
        /// </returns>
        private WebCallResult GetPortGroupCodec(string pObjectId)
        {
            string strUrl = HomeServer.BaseUrl + "portgroups/" + MediaPortGroupObjectId + "/portgroupcodecs/" + pObjectId;

            return(HomeServer.FillObjectWithRestGetResults(strUrl, this));
        }