public void PlaylistsFeedConstructorTest()
        {
            Uri           uriBase  = null; // TODO: Initialize to an appropriate value
            IService      iService = null; // TODO: Initialize to an appropriate value
            PlaylistsFeed target   = new PlaylistsFeed(uriBase, iService);

            Assert.IsNotNull(target);
        }
        public void CreateFeedEntryTest()
        {
            Uri            uriBase  = null;                                 // TODO: Initialize to an appropriate value
            IService       iService = null;                                 // TODO: Initialize to an appropriate value
            PlaylistsFeed  target   = new PlaylistsFeed(uriBase, iService); // TODO: Initialize to an appropriate value
            PlaylistsEntry entry    = target.CreateFeedEntry() as PlaylistsEntry;

            Assert.IsNotNull(entry);
        }
        public GenericListItemCollections GetList(SiteItemEntry entry)
        {
            GenericListItemCollections res = new GenericListItemCollections();

            res.Title = entry.Title;
            YouTubeQuery  query         = new YouTubeQuery(YouTubeQuery.CreatePlaylistsUri(entry.GetValue("id")));
            PlaylistsFeed userPlaylists = Youtube2MP.service.GetPlaylists(query);

            res.Title = userPlaylists.Title.Text;
            foreach (PlaylistsEntry playlistsEntry in userPlaylists.Entries)
            {
                Google.GData.Extensions.XmlExtension e = playlistsEntry.FindExtension("group", "http://search.yahoo.com/mrss/") as Google.GData.Extensions.XmlExtension;

                string img = "http://i2.ytimg.com/vi/hqdefault.jpg";
                try
                {
                    img = e.Node.FirstChild.Attributes["url"].Value;
                }
                catch
                {
                }

                PlayList playList = new PlayList();

                SiteItemEntry itemEntry = new SiteItemEntry();
                itemEntry.Provider = playList.Name;
                itemEntry.SetValue("url", playlistsEntry.Content.AbsoluteUri);
                string          title    = playlistsEntry.Title.Text;
                GenericListItem listItem = new GenericListItem()
                {
                    Title    = title,
                    IsFolder = false,
                    LogoUrl  = img.Replace("default", "hqdefault"),
                    //DefaultImage = "defaultArtistBig.png",
                    Tag = itemEntry
                };
                res.Add(listItem);
            }
            res.ItemType = ItemType.Item;
            return(res);
        }