| | 1 | | namespace DCL.Interface |
| | 2 | | { |
| | 3 | | [System.Serializable] |
| | 4 | | public class ChatMessage |
| | 5 | | { |
| | 6 | | public enum Type |
| | 7 | | { |
| | 8 | | NONE, |
| | 9 | | PUBLIC, |
| | 10 | | PRIVATE, |
| | 11 | | SYSTEM |
| | 12 | | } |
| | 13 | |
|
| 0 | 14 | | public ChatMessage() { } |
| 64 | 15 | | public ChatMessage(Type messageType, string sender, string body) |
| | 16 | | { |
| 64 | 17 | | this.messageType = messageType; |
| 64 | 18 | | this.sender = sender; |
| 64 | 19 | | this.body = body; |
| 64 | 20 | | } |
| | 21 | |
|
| 3 | 22 | | public ChatMessage(string messageId, Type messageType, string sender, string body): this(messageType, sender, bo |
| | 23 | | { |
| 3 | 24 | | this.messageId = messageId; |
| 3 | 25 | | } |
| | 26 | |
|
| | 27 | | public string messageId; |
| | 28 | | public Type messageType; |
| | 29 | | public string sender; |
| | 30 | | public string recipient; |
| | 31 | | public ulong timestamp; |
| | 32 | | public string body; |
| | 33 | | } |
| | 34 | | } |