Example #1
0
 /// <summary>
 /// this class models a request that can be sent to a service
 /// </summary>
 /// <param name="headers">the headers that should be sent as part of the request</param>
 /// <param name="httpMethod">the httpMethod of the request</param>
 /// <param name="pathParameters">any path parameters required</param>
 /// <param name="queryParameters">any query parameters required</param>
 /// <param name="requestBody">a request body if required</param>
 public Request(RESTHeaders headers, RestSharp.Method httpMethod, PathParams pathParameters, IQueryParams queryParameters, IRequestBody requestBody)
 {
     this.headers         = headers;
     this.httpMethod      = httpMethod;
     this.pathParameters  = pathParameters;
     this.queryParameters = queryParameters;
     this.requestBody     = requestBody;
 }
Example #2
0
 public GetCountryRequest(RESTHeaders headers, PathParams pathParameters)
     : base(headers, RestSharp.Method.GET, pathParameters, null, null)
 {
 }
 public GetPaymentInitDetailsRequest(RESTHeaders headers, PathParams pathParameters)
     : base(headers, Method.POST, pathParameters, null, null)
 {
 }