Exemplo n.º 1
0
 /// <summary>
 /// Setting with url, query and path params and toaster settings
 /// </summary>
 /// <param name="url"></param>
 /// <param name="queryParameters"></param>
 /// <param name="pathParameters"></param>
 /// <param name="toasterSettings"></param>
 public HttpSettings(string url, HttpQueryParameters queryParameters, HttpPathParameters pathParameters, ToasterSettings toasterSettings)
 {
     this.SetUrl(url);
     this.QueryParameters = queryParameters == null ? new HttpQueryParameters() : queryParameters;
     this.PathParameters  = pathParameters == null ? new HttpPathParameters() : pathParameters;
     this.ToasterSettings = toasterSettings == null ? new ToasterSettings() : toasterSettings;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Setting with url, query and path params and toaster caption
 /// </summary>
 /// <param name="url"></param>
 /// <param name="queryParameters"></param>
 /// <param name="pathParameters"></param>
 /// <param name="toasterCaption"></param>
 public HttpSettings(string url, HttpQueryParameters queryParameters, HttpPathParameters pathParameters, string toasterCaption)
 {
     this.SetUrl(url);
     this.QueryParameters = queryParameters == null ? new HttpQueryParameters() : queryParameters;
     this.PathParameters  = pathParameters == null ? new HttpPathParameters() : pathParameters;
     this.ToasterSettings = string.IsNullOrEmpty(toasterCaption) ? new ToasterSettings() : new ToasterSettings(toasterCaption);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Settins only with url.
 /// </summary>
 /// <param name="url">Url</param>
 public HttpSettings(string url)
 {
     this.SetUrl(url);
     this.QueryParameters = new HttpQueryParameters();
     this.PathParameters  = new HttpPathParameters();
     this.ToasterSettings = new ToasterSettings();
 }