public static string DownloadString(string url) { using (MSniperClient w = new MSniperClient()) { return(w.DownloadString(url)); } }
public static byte[] DownloadData(string url) { using (MSniperClient w = new MSniperClient()) { return(w.DownloadData(url)); } }
private static string DownloadServerVersion() { using (var wC = new MSniperClient()) { return(wC.DownloadString(Variables.VersionUri)); } }
public static byte[] DownloadData(string url) { using (var w = new MSniperClient()) { w.Encoding = Encoding.Unicode; return(w.DownloadData(url)); } }
private static byte[] GetFile(string fileVersion) { try { string url = string.Format(Variables.FileLink, fileVersion); using (MSniperClient w = new MSniperClient()) { byte[] downloadedFile = w.DownloadData(url); return(downloadedFile); } } catch (Exception ex) { Log.WriteLine(ex.Message, ConsoleColor.Red); return(null); } }