コード例 #1
0
        private NotificationObject GetEpisodeTimeGateReadyNotif()
        {
            EpisodeController episodeController = Service.EpisodeController;

            if (!episodeController.IsTaskTimeGateActive())
            {
                return(null);
            }
            uint taskTimeGateEndTime = episodeController.GetTaskTimeGateEndTime();
            uint serverTime          = Service.ServerAPI.ServerTime;

            if (serverTime > taskTimeGateEndTime)
            {
                return(null);
            }
            int      num  = (int)(taskTimeGateEndTime - serverTime);
            DateTime time = DateTime.Now.AddSeconds((double)num);

            return(this.CreateReengagementNotification("episode_research", time, false));
        }