Example #1
0
 public static string DownloadString(string url)
 {
     using (MSniperClient w = new MSniperClient())
     {
         return(w.DownloadString(url));
     }
 }
Example #2
0
 public static byte[] DownloadData(string url)
 {
     using (MSniperClient w = new MSniperClient())
     {
         return(w.DownloadData(url));
     }
 }
Example #3
0
 private static string DownloadServerVersion()
 {
     using (var wC = new MSniperClient())
     {
         return(wC.DownloadString(Variables.VersionUri));
     }
 }
Example #4
0
 public static byte[] DownloadData(string url)
 {
     using (var w = new MSniperClient())
     {
         w.Encoding = Encoding.Unicode;
         return(w.DownloadData(url));
     }
 }
Example #5
0
 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);
     }
 }