namespace Holo.Virtual.Users.Messenger { using Holo; using Holo.Managers; using System; internal class virtualBuddy { private bool ᙃ; internal bool Online; internal int userID; internal virtualBuddy(int userID) { this.userID = userID; bool updated = this.Updated; } internal string ToString(bool includeUsername) { string str = Encoding.encodeVL64(this.userID); if (includeUsername) { string str2 = ""; if (this.Online) { str2 = userManager.getUser(this.userID)._Username; } else { str2 = DB.runRead("SELECT name FROM users WHERE id = '" + this.userID + "'"); } str = str + str2 + Convert.ToChar(2); } if (this.Online) { str = str + "II"; if (this.ᙃ) { str = str + "I"; } else { str = str + "H"; } str = str + userManager.getUser(this.userID)._Figure; } else { str = str + "IHH"; } return (str + Convert.ToChar(2) + "H"); } internal bool Updated { get { bool flag = userManager.containsUser(this.userID); bool flag2 = false; if (flag) { flag2 = userManager.getUser(this.userID).roomUser != null; } if ((flag2 == this.ᙃ) && (flag == this.Online)) { return false; } this.Online = flag; this.ᙃ = flag2; return true; } } } }