diff options
Diffstat (limited to 'DSACore/Models/Network')
-rw-r--r-- | DSACore/Models/Network/Command.cs | 18 | ||||
-rw-r--r-- | DSACore/Models/Network/CommandResponse.cs | 28 |
2 files changed, 0 insertions, 46 deletions
diff --git a/DSACore/Models/Network/Command.cs b/DSACore/Models/Network/Command.cs deleted file mode 100644 index 00b00a6..0000000 --- a/DSACore/Models/Network/Command.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -namespace DSACore.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/DSACore/Models/Network/CommandResponse.cs b/DSACore/Models/Network/CommandResponse.cs deleted file mode 100644 index c7a410a..0000000 --- a/DSACore/Models/Network/CommandResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; - -namespace DSACore.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 |