/// <summary>
        /// Maps object model to dictionary of parameters in cloudinary notation.
        /// </summary>
        /// <returns>Sorted dictionary of parameters.</returns>
        public override SortedDictionary <string, object> ToParamsDictionary()
        {
            SortedDictionary <string, object> dict = base.ToParamsDictionary();

            AddParam(dict, "allowed_for_strict", AllowedForStrict);

            if (UnsafeUpdate != null)
            {
                AddParam(dict, "unsafe_update", UnsafeUpdate.Generate());
            }

            return(dict);
        }
Beispiel #2
0
        /// <summary>
        /// Maps object model to dictionary of parameters in cloudinary notation.
        /// </summary>
        /// <returns>Sorted dictionary of parameters.</returns>
        public override SortedDictionary <string, object> ToParamsDictionary()
        {
            SortedDictionary <string, object> dict = base.ToParamsDictionary();

            AddParam(dict, "allowed_for_strict", AllowedForStrict);

            // FIXME: dirty hack to avoid signing of admin api parameters.
            AddParam(dict, "unsigned", "true");
            AddParam(dict, "removeUnsignedParam", "true");

            if (UnsafeUpdate != null)
            {
                AddParam(dict, "unsafe_update", UnsafeUpdate.Generate());
            }

            return(dict);
        }