public override string ToString() { return("user[" + ID + "] Name: " + Name + Environment.NewLine + "user[" + ID + "] Online: " + Online + Environment.NewLine + "user[" + ID + "] Socket: " + Socket + Environment.NewLine + "user[" + ID + "] LastOnline: " + LastOnline.ToString("yyyy-MM-dd HH:mm:ss") + Environment.NewLine + "user[" + ID + "] Registered: " + Registered.ToString("yyyy-MM-dd HH:mm:ss")); }
public List <string> ToXml() { List <string> output = new List <string>(); string head = ""; head += "<OPTION "; head += "Name=\"" + Name + "\" "; head += "Registered=\"" + Registered.ToString() + "\" "; head += "Type=\"" + type + "\" "; head += "Value=\"" + Value + "\">"; output.Add(head); foreach (string option in Options) { output.Add("\t<" + "ENUM EnumValue=\"" + option + "\"/>"); } output.Add("</OPTION>"); return(output); }