summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Commands/FileHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dsa/DSALib/Commands/FileHandler.cs')
-rw-r--r--dsa/DSALib/Commands/FileHandler.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/dsa/DSALib/Commands/FileHandler.cs b/dsa/DSALib/Commands/FileHandler.cs
index d117040..bd38fa9 100644
--- a/dsa/DSALib/Commands/FileHandler.cs
+++ b/dsa/DSALib/Commands/FileHandler.cs
@@ -3,22 +3,17 @@ using System.Linq;
using System.Net;
using DSALib.DSA_Game;
using DSALib.DSA_Game.Characters;
-using DSALib;
using DSALib.Models.Dsa;
-namespace DSALib.Commands
-{
- public class FileHandler
- {
- public static string AddChar(ulong id, string url)
- {
+namespace DSALib.Commands {
+ public class FileHandler {
+ public static string AddChar(ulong id, string url) {
if (url == string.Empty) throw new ArgumentException("Es wurde keine Datei angehÃĪngt");
if (!url.EndsWith(".xml")) throw new ArgumentException("Es wurde kein xml Held mitgeschickt");
- using (var client = new WebClient())
- {
+ using (var client = new WebClient()) {
client.DownloadFile(url, "helden\\" + url.Split("/").Last());
}