diff options
Diffstat (limited to 'dsa/DSALib/Models/Network/CommandResponse.cs')
-rw-r--r-- | dsa/DSALib/Models/Network/CommandResponse.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dsa/DSALib/Models/Network/CommandResponse.cs b/dsa/DSALib/Models/Network/CommandResponse.cs new file mode 100644 index 0000000..0816e4a --- /dev/null +++ b/dsa/DSALib/Models/Network/CommandResponse.cs @@ -0,0 +1,28 @@ +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 |