} // end default constructor

        #endregion

        #region --Functions--

        /// <summary>
        /// Returns a formatted string for use as a query-string in a URL.
        /// </summary>
        /// <param name="formatter">The <see cref="QueryStringFormatter"/> instance used to format name / value pairs.</param>
        /// <returns>A formatted query-string.</returns>
        public override string ParametersToQueryString(QueryStringFormatter formatter) {
            StringBuilder sb = new StringBuilder();
            if (!string.IsNullOrWhiteSpace(this.ClanName)) {
                var namePair = formatter.Format("name", this.ClanName, true);
                sb.Append(string.Concat(namePair.Key, "=", namePair.Value));
            }

            return sb.ToString();
        } // end function ParametersToQueryString
Exemple #2
0
        } // end default constructor

        #endregion

        #region --Functions--

        /// <summary>
        /// Converts the properties relevant to the request into their corresponding query-string name / value pairs.
        /// </summary>
        /// <param name="formatter">The <see cref="QueryStringFormatter"/> instance used to format property values for query string use.</param>
        /// <returns>A string formatted for a query-string in a URL.</returns>
        public abstract string ParametersToQueryString(QueryStringFormatter formatter);