summaryrefslogtreecommitdiff
path: root/DSACore/Models/Network/Group.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
commit304437b834e8c87687f68333ae67a13ee1377a73 (patch)
tree51dd246568e8a159627d9cb92e99890adb5cbef8 /DSACore/Models/Network/Group.cs
parent2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff)
Adjust Codestyle
Diffstat (limited to 'DSACore/Models/Network/Group.cs')
-rw-r--r--DSACore/Models/Network/Group.cs21
1 files changed, 7 insertions, 14 deletions
diff --git a/DSACore/Models/Network/Group.cs b/DSACore/Models/Network/Group.cs
index efe12ee..aee9d02 100644
--- a/DSACore/Models/Network/Group.cs
+++ b/DSACore/Models/Network/Group.cs
@@ -1,18 +1,14 @@
using System;
using System.Collections.Generic;
-namespace DSACore.Models.Network
-{
- public class Group
- {
- public Group(string name, string password)
- {
+namespace DSACore.Models.Network {
+ public class Group {
+ public Group(string name, string password) {
Name = name;
Password = password;
}
- public Group(string name, int userOnline)
- {
+ public Group(string name, int userOnline) {
Name = name ?? throw new ArgumentNullException(nameof(name));
}
@@ -22,16 +18,13 @@ namespace DSACore.Models.Network
public int UserCount => Users.Count;
- public SendGroup SendGroup()
- {
+ public SendGroup SendGroup() {
return new SendGroup(Name, UserCount);
}
}
- public class SendGroup
- {
- public SendGroup(string name, int userCount)
- {
+ public class SendGroup {
+ public SendGroup(string name, int userCount) {
Name = name ?? throw new ArgumentNullException(nameof(name));
UserCount = userCount;
}