blob: ed4b7d0875484ab2533bcadada239912ae71b288 (
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
29
30
31
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
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; private set; }
public ResponseType ResponseType { get; private set;}
public override string ToString()
{
return message;
}
}
public enum ResponseType
{
Broadcast,
Caller,
Error
}
}
|