/// <summary>
 /// Initializes a new instance of the <see cref="FluentRestWrapper"/> class.
 /// </summary>
 /// <param name="restWrapper">The rest wrapper.</param>
 /// <param name="method">The method.</param>
 public FluentRestWrapper(RestWrapper restWrapper, string method, Method type = Method.GET)
 {
     this.parameters  = new List <Parameter>();
     this.restWrapper = restWrapper;
     this.method      = method;
     this.type        = type;
 }
Example #2
0
 /// <summary>
 /// Methods the specified wrapper.
 /// </summary>
 /// <param name="wrapper">The wrapper.</param>
 /// <param name="method">The method.</param>
 /// <returns>Fluent wrapper</returns>
 public static FluentRestWrapper Method(this RestWrapper wrapper, string method, Method type = RestSharp.Method.GET)
 {
     return(new FluentRestWrapper(wrapper, method, type));
 }