public UserInfo(User user, bool loggedIn) { LoggedIn = loggedIn; UID = user.UID; Username = user.Username; Avatar = user.Avatar; StarString = user.StarString; Language = user.Language; UnixJoinDate = user.UnixJoinDate; LastPing = user.LastPing; LastPost = user.LastPost; Active = user.Active; Banned = user.Banned; BannedUntil = user.BannedUntil; BlockedUntil = user.BlockedUntil; user.RequestDecayUpdate(); SpamScore = user.SpamScore; GlobalSpamScore = user.GlobalSpamScore; SecondsToUnblock = user.SecondsToUnblock; CanStaffChat = user.CanStaffChat; CanGlobalChat = user.CanGlobalChat; TotalChatTime = user.TotalChatTime; AverageSessionTime = user.AverageSessionTime; Blocked = user.Blocked; CurrentSessionTime = user.CurrentSessionTime; ChatControl = user.ChatControl; ChatControlExtended = user.ChatControlExtended; SessionCount = user.SessionCount; OpenSessionCount = user.OpenSessionCount; BadSessionCount = user.BadSessionCount; LastSessionID = user.LastSessionID; }
public void UpdateUser(User user) { this.user = new UserInfo(user, true); }
public RoomUserJSONObject(User user) { username = user.Username; avatar = user.Avatar; uid = user.UID; active = user.Active; banned = user.Banned; }
public LanguageTagParameters(ChatTags tag, User user, User userForDictionary = null) { if (userForDictionary == null) userForDictionary = user; Tag = tag; this.user = new UserInfo(user, true); Replacements = LanguageTags.QuickDictionary(new UserInfo(userForDictionary, true)); }
public UserJSONObject(User user) { uid = user.UID; username = user.Username; avatar = user.Avatar; stars = user.StarString; level = user.Level; active = user.Active; joined = user.UnixJoinDate; banned = user.Banned; badges = user.Badges; }