Beispiel #1
0
        protected void SetLastWatched(EpisodeModel lastWatched)
        {
            _episodes.Foreach(e => e.IsLastWatched = e == lastWatched);
            var unWatchedCount = lastWatched == null ? _episodes.Length : _episodes.Length - _episodes.IndexOf(lastWatched) - 1;

            HasNewEpisodes = unWatchedCount >= Settings.Default.EpisdeNotifierDelta;
        }
Beispiel #2
0
            protected override void OnMarkWatchedCommand(EpisodeModel obj)
            {
                base.OnMarkWatchedCommand(obj);


                _movieRecord.Season  = obj.Season;
                _movieRecord.Episode = obj.Episode;

                _dataBase.UpdateMovie(_movieRecord);


                SetLastWatched(obj);
            }
Beispiel #3
0
 protected virtual void OnMarkWatchedCommand(EpisodeModel obj)
 {
 }