Exemplo n.º 1
0
        /// <summary>
        /// Gathers all values in the ValueCollection as a compiled HTTP form for submission
        /// </summary>
        public string GetValuesAsContentDisposition()
        {
            StringBuilder results = new StringBuilder();
            string        dispositionValue;

            if (ValueCollection.Count == 0)
            {
                CrestronConsole.PrintLine("SimplTeslaCar.Results.FormValues.GetValueAsContentDisposition()::VALUECOLLECTION IS EMPTY!");
                return("");
            }

            foreach (FormValue fv in ValueCollection)
            {
                dispositionValue = ContentFactory.SetFormContentDisposition(fv.Field, fv.Value);
                results.Append(dispositionValue);
            }


            results.Append(ContentFactory.FinalizeFormDisposition());

            return(results.ToString());
        }