-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMessage.cs
More file actions
34 lines (33 loc) · 841 Bytes
/
Message.cs
File metadata and controls
34 lines (33 loc) · 841 Bytes
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
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChatAssistant
{
public enum MsgType
{
Global = 0,
Channel = 1,
Private = 2,
Death = 3,
Join = 4,
Quit = 5
}
public class ChatMessage
{
public String Text;
public Color Color;
public MsgType Type;
public int Sender;
public DateTime Timestamp;
public ChatMessage(String txt, Color c, MsgType type = MsgType.Global, int sender = -1)
{
this.Color = c;
this.Text = txt;
this.Type = type;
this.Sender = sender;
this.Timestamp = DateTime.Now;
}
/*public ChatMessage(String txt, int r, int g, int b) : this(txt, new Color(r, g, b)) { } */
}
}