summaryrefslogtreecommitdiff
path: root/DSALib/Models/Network/Group.cs
diff options
context:
space:
mode:
authoruzvkl <dennis.kobert@student.kit.edu>2019-06-11 22:46:57 +0200
committeruzvkl <dennis.kobert@student.kit.edu>2019-06-11 22:46:57 +0200
commit2490ad5d31fe2ac778ff9303776f0e91f47a2862 (patch)
tree4b2b2b284897cd239ecbc3a2d4efa6d5d103057f /DSALib/Models/Network/Group.cs
parentc80384ca8b729677d78934476e7b193b5327ae40 (diff)
Organize groups to seperate connention management form gamelogic
Diffstat (limited to 'DSALib/Models/Network/Group.cs')
-rw-r--r--DSALib/Models/Network/Group.cs43
1 files changed, 0 insertions, 43 deletions
diff --git a/DSALib/Models/Network/Group.cs b/DSALib/Models/Network/Group.cs
deleted file mode 100644
index 608e5ea..0000000
--- a/DSALib/Models/Network/Group.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace DSALib.Models.Network
-{
- public class Group
- {
- public Group(string name, string password)
- {
- Name = name;
- Password = password;
- }
-
- public Group(string name, int userOnline)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- }
-
- public string Name { get; set; }
- public string Password { get; set; }
- public List<User> Users { get; set; } = new List<User>();
-
- public int UserCount => Users.Count;
-
- public SendGroup SendGroup()
- {
- return new SendGroup(Name, UserCount);
- }
- }
-
- public class SendGroup
- {
- public SendGroup(string name, int userCount)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- UserCount = userCount;
- }
-
- public string Name { get; set; }
-
- public int UserCount { get; set; }
- }
-} \ No newline at end of file