summaryrefslogtreecommitdiff
path: root/DSACore/Models
diff options
context:
space:
mode:
Diffstat (limited to 'DSACore/Models')
-rw-r--r--DSACore/Models/Network/Group.cs43
-rw-r--r--DSACore/Models/Network/Token.cs21
-rw-r--r--DSACore/Models/Network/User.cs9
3 files changed, 0 insertions, 73 deletions
diff --git a/DSACore/Models/Network/Group.cs b/DSACore/Models/Network/Group.cs
deleted file mode 100644
index efe12ee..0000000
--- a/DSACore/Models/Network/Group.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace DSACore.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
diff --git a/DSACore/Models/Network/Token.cs b/DSACore/Models/Network/Token.cs
deleted file mode 100644
index 451cafc..0000000
--- a/DSACore/Models/Network/Token.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-
-namespace DSACore.Models.Network
-{
- public class Token
- {
- private readonly DateTime creation = DateTime.Now;
-
- public Token(string group)
- {
- Group = group;
- }
-
- public string Group { get; set; }
-
- public bool IsValid()
- {
- return DateTime.Now - creation < TimeSpan.FromMinutes(1);
- }
- }
-} \ No newline at end of file
diff --git a/DSACore/Models/Network/User.cs b/DSACore/Models/Network/User.cs
deleted file mode 100644
index 8b8008c..0000000
--- a/DSACore/Models/Network/User.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace DSACore.Models.Network
-{
- public class User
- {
- public string Name { get; set; }
- public string ConnectionId { get; set; }
- public int Char { get; set; }
- }
-} \ No newline at end of file