/Atlassian.Jira/WebClientWrapper.cs
C# | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | c8d1a86258c43e6275e8360babed3ca1 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Net;
-
- namespace Atlassian.Jira
- {
- internal class WebClientWrapper: IWebClient
- {
- private readonly WebClient _webClient;
-
- public WebClientWrapper()
- {
- _webClient = new WebClient();
- }
-
- public void AddQueryString(string key, string value)
- {
- _webClient.QueryString.Add(key, value);
- }
-
- public void Download(string url, string fileName)
- {
- _webClient.DownloadFile(url, fileName);
- }
- }
- }