gefaalde poging om de chat te fixen take 1
This commit is contained in:
@@ -5,12 +5,14 @@
|
|||||||
public string Message { get; }
|
public string Message { get; }
|
||||||
public string Name { get; }
|
public string Name { get; }
|
||||||
public double TimeStamp { get; set;}
|
public double TimeStamp { get; set;}
|
||||||
|
public bool IsDoctor { get; set; }
|
||||||
|
|
||||||
public ChatMessage(string name, string message)
|
public ChatMessage(string name, string message, bool isDoctor)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
Message = message;
|
Message = message;
|
||||||
TimeStamp = Helper.Now;
|
TimeStamp = Helper.Now;
|
||||||
|
IsDoctor = isDoctor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ namespace ErgometerLibrary
|
|||||||
{
|
{
|
||||||
Type = CommandType.LOGIN;
|
Type = CommandType.LOGIN;
|
||||||
Session = session;
|
Session = session;
|
||||||
Timestamp = Helper.Now;
|
Timestamp = Helper.Now;//wtf is dit voor pure aids??????????
|
||||||
|
|
||||||
DisplayName = name;
|
DisplayName = name;
|
||||||
IsDoctor = doctor;
|
IsDoctor = doctor;
|
||||||
@@ -142,7 +142,7 @@ namespace ErgometerLibrary
|
|||||||
if (com[1].StartsWith("ses"))
|
if (com[1].StartsWith("ses"))
|
||||||
session = int.Parse(com[1].Substring(3));
|
session = int.Parse(com[1].Substring(3));
|
||||||
else
|
else
|
||||||
throw new FormatException("Error in NetCommend: " + com[1] + " is not a valid session.");
|
throw new FormatException("Error in NetCommand: " + com[1] + " is not a valid session.");
|
||||||
|
|
||||||
string[] args = new string[com.Length-2];
|
string[] args = new string[com.Length-2];
|
||||||
for (int i = 2; i < com.Length; i++)
|
for (int i = 2; i < com.Length; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user