示例#1
0
        /// <inheritdoc/>
        public IEnumerable <PodcastSubscription> GetPodcastSubscriptions()
        {
            var list = new List <PodcastSubscription>();

            _api.Podcasts_QuerySubscriptions(null, out var subscriptionIds);

            foreach (var id in subscriptionIds)
            {
                if (_api.Podcasts_GetSubscription(id, out var subscriptionMetadata))
                {
                    list.Add(SubscriptionConverter.Convert(subscriptionMetadata));
                }
            }

            return(list);
        }