-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.cs
45 lines (39 loc) · 1.03 KB
/
User.cs
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
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace System.Net.IRC.Client
{
public class User
{
private string nickName = "";
private string connection = "";
private Color nickColor;
private string[] modes;
public string NickName
{
get { return this.nickName; }
set { this.nickName = value; }
}
public Color Color
{
get { return this.nickColor; }
}
public string[] Modes
{
get { return this.modes; }
}
public User(string nickName)
{
//split on !~
this.nickName = nickName;
Random random = new Random();
this.nickColor = Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255));
}
public override string ToString()
{
return nickName;
}
}
}