blob: c7a410a5c2d0863c6921755e169a44b57c4ba471 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
}
}
|