/// <summary> /// Initializes a new instance of the <see cref="GroupForumPost" /> class. /// </summary> /// <param name="row">The row.</param> internal GroupForumPost(DataRow row) { Id = Convert.ToInt32(row["id"]); ParentId = Convert.ToInt32(row["parent_id"]); GroupId = Convert.ToInt32(row["group_id"]); Timestamp = Convert.ToInt32(row["timestamp"]); Pinned = row["pinned"].ToString() == "1"; Locked = row["locked"].ToString() == "1"; Hidden = row["hidden"].ToString() == "1"; PosterId = Convert.ToInt32(row["poster_id"]); PosterName = row["poster_name"].ToString(); PosterLook = row["poster_look"].ToString(); Subject = row["subject"].ToString(); PostContent = row["post_content"].ToString(); Hider = Convert.ToInt32(row["post_hider"]); MessageCount = 0; if (ParentId == 0) { MessageCount = GroupManager.GetMessageCountForThread(Id); } }
public Game() { this._packetManager = new PacketManager(); this._clientManager = new GameClientManager(); this._modManager = new ModerationManager(); this._moderationTool = new ModerationTool(); this._itemDataManager = new ItemDataManager(); this._itemDataManager.Init(); this._catalogManager = new CatalogManager(); this._catalogManager.Init(this._itemDataManager); this._televisionManager = new TelevisionManager(); this._navigatorManager = new NavigatorManager(); this._roomManager = new RoomManager(); this._chatManager = new ChatManager(); this._groupManager = new GroupManager(); this._questManager = new QuestManager(); this._achievementManager = new AchievementManager(); this._talentTrackManager = new TalentTrackManager(); this._landingViewManager = new LandingViewManager(); this._gameDataManager = new GameDataManager(); this._globalUpdater = new ServerStatusUpdater(); this._globalUpdater.Init(); this._languageLocale = new LanguageLocale(); this._antiMutant = new AntiMutant(); this._botManager = new BotManager(); this._cacheManager = new CacheManager(); this._rewardManager = new RewardManager(); this._badgeManager = new BadgeManager(); this._badgeManager.Init(); this._permissionManager = new PermissionManager(); this._permissionManager.Init(); this._subscriptionManager = new SubscriptionManager(); this._subscriptionManager.Init(); }