Exemplo n.º 1
0
        public static IDictionary <string, object> getSetBaseContainerProperties(SetBaseContainerParams setRecordInStep)
        {
            IDictionary <string, object> properties = new Dictionary <string, object>();

            properties[BASE_CONTAINER_NAME] = setRecordInStep.BaseContainer.ToString();
            return(properties);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Set the base container. </summary>
        /// <param name="setBaseContainer"> </param>
        /// <exception cref="ODataException"> </exception>
        /// <exception cref="GeneralSecurityException"> </exception>
        /// <exception cref="IOException"> </exception>
        /// <exception cref="URISyntaxException"> </exception>
        /// <exception cref="NeotysAPIException"> </exception>
        public void SetBaseContainer(SetBaseContainerParams setBaseContainer)
        {
            if (!Enabled)
            {
                return;
            }
            IDictionary <string, object> properties = DesignApiUtils.getSetBaseContainerProperties(setBaseContainer);

            properties[DesignApiUtils.API_KEY] = apiKey;
            try
            {
                CreateEntity(DesignApiUtils.SET_BASE_CONTAINER, properties);
            }
            catch (ODataException oDataException)
            {
                throw new NeotysAPIException(oDataException);
            }
        }