コード例 #1
0
        private void CheckIfFileExists(IReadOnlyList <PodcastDownloadModel> podcastModels)
        {
            for (var index = 0; index < podcastModels.Count; index++)
            {
                var podcastModel = podcastModels[index];

                if (podcastModel.EpisodeNumber == 0)
                {
                    podcastModel.EpisodeNumber = index + 1;
                }

                CheckFilePath(podcastModel);
            }

            TotalItems?.Invoke(podcastModels.Count(x => !x.FileExists));
        }