private NotificationObject GetSquadWarUseTurnNotification() { uint time = ServerTime.Time; SquadWarManager warManager = Service.Get <SquadController>().WarManager; if (warManager == null || warManager.CurrentSquadWar == null) { return(null); } SquadWarParticipantState currentParticipantState = warManager.GetCurrentParticipantState(); if (currentParticipantState == null || currentParticipantState.TurnsLeft <= 0) { return(null); } if ((long)warManager.CurrentSquadWar.ActionEndTimeStamp - (long)((ulong)time) <= 0L) { return(null); } int num = warManager.CurrentSquadWar.ActionEndTimeStamp - GameConstants.WAR_NOTIF_ACTION_TURNS_REMINDER * 3600 - (int)time; if (num <= 0) { return(null); } string text = "squadwars_action_turns_reminder"; NotificationTypeVO notificationTypeVO = Service.Get <IDataController>().Get <NotificationTypeVO>(text); string id = "notif_" + text; string message = this.lang.Get(id, new object[0]); string inProgressMessage = this.lang.Get("notif_" + text + "_progress", new object[0]); DateTime time2 = DateTime.get_Now().AddSeconds((double)num); if (!this.CheckValidNotificationTime(notificationTypeVO, time2)) { return(null); } return(new NotificationObject(text, inProgressMessage, message, notificationTypeVO.SoundName, time2, text, text)); }