diff options
Diffstat (limited to 'DSALib/Models/Network')
-rw-r--r-- | DSALib/Models/Network/Command.cs | 18 | ||||
-rw-r--r-- | DSALib/Models/Network/CommandResponse.cs | 28 |
2 files changed, 0 insertions, 46 deletions
diff --git a/DSALib/Models/Network/Command.cs b/DSALib/Models/Network/Command.cs deleted file mode 100644 index 5a97e88..0000000 --- a/DSALib/Models/Network/Command.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -namespace DSALib.Models.Network -{ - public class Command - { - public ulong GroupId { get; set; } = 0; - 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 var mod) ? mod : 0; - public bool IsDm { get; set; } = false; - } -}
\ No newline at end of file diff --git a/DSALib/Models/Network/CommandResponse.cs b/DSALib/Models/Network/CommandResponse.cs deleted file mode 100644 index 0816e4a..0000000 --- a/DSALib/Models/Network/CommandResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; - -namespace DSALib.Models.Network -{ - public class CommandResponse - { - public CommandResponse(string message, ResponseType responseType = ResponseType.Broadcast) - { - this.message = message ?? throw new ArgumentNullException(nameof(message)); - ResponseType = responseType; - } - - public string message { get; } - public ResponseType ResponseType { get; } - - public override string ToString() - { - return message; - } - } - - public enum ResponseType - { - Broadcast, - Caller, - Error - } -}
\ No newline at end of file |