public void Load(Beetle.NetPackage.IDataReader reader) { Name = reader.ReadUTF(); EMail = reader.ReadUTF(); City = reader.ReadUTF(); Country = reader.ReadUTF(); string date = reader.ReadUTF(); Console.WriteLine(date); RegTime = DateTime.ParseExact(date, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture); }
protected override Beetle.NetPackage.IMessage GetMessage(Beetle.NetPackage.IDataReader reader) { string Name = reader.ReadUTF(); switch (Name) { case "Register": return(new Register()); } return(null); }