| | 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 | |
|
| 112 | 14 | | public ChatMessage() { } |
| 63 | 15 | | public ChatMessage(Type messageType, string sender, string body) |
| | 16 | | { |
| 63 | 17 | | this.messageType = messageType; |
| 63 | 18 | | this.sender = sender; |
| 63 | 19 | | this.body = body; |
| 63 | 20 | | } |
| | 21 | |
|
| 24 | 22 | | public ChatMessage(Type messageType, string sender, string body, ulong timestamp) |
| | 23 | | { |
| 24 | 24 | | this.messageType = messageType; |
| 24 | 25 | | this.sender = sender; |
| 24 | 26 | | this.body = body; |
| 24 | 27 | | this.timestamp = timestamp; |
| 24 | 28 | | } |
| | 29 | |
|
| 1 | 30 | | public ChatMessage(string messageId, Type messageType, string sender, string body): this(messageType, sender, bo |
| | 31 | | { |
| 1 | 32 | | this.messageId = messageId; |
| 1 | 33 | | } |
| | 34 | |
|
| 24 | 35 | | public ChatMessage(string messageId, Type messageType, string sender, string body, ulong timestamp): this(messag |
| | 36 | | { |
| 24 | 37 | | this.messageId = messageId; |
| 24 | 38 | | } |
| | 39 | |
|
| | 40 | | public string messageId; |
| | 41 | | public Type messageType; |
| | 42 | | public string sender; |
| | 43 | | public string senderName; |
| | 44 | | public string recipient; |
| | 45 | | public ulong timestamp; |
| | 46 | | public string body; |
| | 47 | | public string receiverId; |
| | 48 | | public string channelName; |
| | 49 | | } |
| | 50 | | } |