Exemplo n.º 1
0
        /// <summary>
        /// Add path item (string vector(s))
        /// </summary>
        /// <param name="values">path elements</param>
        /// <returns>this</returns>
        public RestClient AddPath(params string[] values)
        {
            values.Verify(nameof(values)).IsNotNull();

            PathItems = PathItems.With(values);

            return(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add path item (string vector(s))
        /// </summary>
        /// <param name="value">path(s)</param>
        /// <param name="values">additional path(s)</param>
        /// <returns>this</returns>
        public RestClient AddPath(string value, params string[] values)
        {
            Verify.IsNotEmpty(nameof(value), value);

            PathItems = PathItems.With(value);
            if (values != null)
            {
                PathItems = PathItems.With(values);
            }

            return(this);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Add path item (string vector(s))
 /// </summary>
 /// <param name="values">path elements</param>
 /// <returns>this</returns>
 public RestClient AddPath(params string[] values)
 {
     PathItems = PathItems.With(values);
     return(this);
 }