Example #1
0
        internal string Serialize()
        {
            string[] fields = new string[FieldCount];

            fields[0] = Address.ToString();
            fields[1] = PlayerDB.Escape(BannedBy);
            fields[2] = BanDate.ToUnixTimeString();
            fields[3] = PlayerDB.Escape(BanReason);
            fields[4] = PlayerDB.Escape(PlayerName);
            fields[5] = Attempts.ToStringInvariant();
            fields[6] = PlayerDB.Escape(LastAttemptName);
            fields[7] = LastAttemptDate.ToUnixTimeString();

            return(String.Join(",", fields));
        }