Inheritance: CloudinaryDotNet.Actions.RawUploadResult
Ejemplo n.º 1
0
        /// <summary>
        /// Parses HTTP response and creates new instance of this class
        /// </summary>
        /// <param name="response">HTTP response</param>
        /// <returns>New instance of this class</returns>
        internal new static ExplicitResult Parse(HttpWebResponse response)
        {
            ExplicitResult result = Parse <ExplicitResult>(response);

            if (result.JsonObj != null)
            {
                var responsiveBreakpoints = result.JsonObj["responsive_breakpoints"];
                if (responsiveBreakpoints != null)
                {
                    result.ResponsiveBreakpoints = responsiveBreakpoints.ToObject <List <ResponsiveBreakpointList> >();
                }
            }

            return(result);
        }