summaryrefslogtreecommitdiff
path: root/DSACore
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-29 19:16:40 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-29 19:16:40 +0200
commit6caf0178d0132a9e70144094957a8a6dcee666e5 (patch)
treeee2f8103f9a887b69734a1dcc59caa6a783bfaec /DSACore
parent68f153b254de6cc385a9c6ffebcde82e98a6adcc (diff)
fixed Network namespace
Diffstat (limited to 'DSACore')
-rw-r--r--DSACore/Hubs/ChatHub.cs1
-rw-r--r--DSACore/Models/Network/Command.cs4
-rw-r--r--DSACore/Models/Network/Group.cs2
3 files changed, 4 insertions, 3 deletions
diff --git a/DSACore/Hubs/ChatHub.cs b/DSACore/Hubs/ChatHub.cs
index 484a350..de8705e 100644
--- a/DSACore/Hubs/ChatHub.cs
+++ b/DSACore/Hubs/ChatHub.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DSACore.Models;
+using DSACore.Models.Network;
using Microsoft.AspNetCore.SignalR;
namespace DSACore.Hubs
diff --git a/DSACore/Models/Network/Command.cs b/DSACore/Models/Network/Command.cs
index dcfc692..456a896 100644
--- a/DSACore/Models/Network/Command.cs
+++ b/DSACore/Models/Network/Command.cs
@@ -8,13 +8,13 @@ namespace DSACore.Models.Network
public class Command
{
public ulong GroupId { get; set; } = 0;
- public ulong CharId { get; set; }
+ public ulong CharId { get; set; }
public string Name { get; set; }
public string CmdIdentifier { get; set; }
public List<string> CmdTexts { get; set; }
public string CmdText => CmdTexts.Count != 0 ? CmdTexts.First() : "";
- public int Cmdmodifier => CmdTexts.Count!=0&&int.TryParse(CmdTexts.Last(),out int mod)?mod:0;
+ public int Cmdmodifier => CmdTexts.Count != 0 && int.TryParse(CmdTexts.Last(), out int mod) ? mod : 0;
public bool IsDm { get; set; } = false;
}
}
diff --git a/DSACore/Models/Network/Group.cs b/DSACore/Models/Network/Group.cs
index 40f5aeb..eab02cd 100644
--- a/DSACore/Models/Network/Group.cs
+++ b/DSACore/Models/Network/Group.cs
@@ -8,6 +8,6 @@ namespace DSACore.Models.Network
public class Group
{
public string Name { get; set; }
- public List<User> Users { get; set; }= new List<User>();
+ public List<User> Users { get; set; } = new List<User>();
}
}