summaryrefslogtreecommitdiff
path: root/DSACore/Models/Network
diff options
context:
space:
mode:
authoruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
committeruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
commite6181c24124d97f2fbc932b8a68311e625463156 (patch)
treec1f097c344ca266b7941c9668590b0fd35c7870a /DSACore/Models/Network
parent2490ad5d31fe2ac778ff9303776f0e91f47a2862 (diff)
Move dsa related stuff to subfolder
Diffstat (limited to 'DSACore/Models/Network')
-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