internal static AlbumList CreateFromXmlNodeList(XmlNodeList albumNodeList)
        {
            AlbumList albumList = new AlbumList();

            foreach (XmlNode albumNode in albumNodeList)
            {
                albumList.Add(Album.CreateFromXmlNode(albumNode));
            }

            return(albumList);
        }
Beispiel #2
0
        public AlbumList GetAllUsersAlbums(string username)
        {
            string relativePath = GenerateRelativeAlbumUrl(username);

            QueryParameterList paramaters = new QueryParameterList();

            paramaters.Add(new QueryParameter(_format, "xml"));
            paramaters.Add(new QueryParameter(_recurse, "1"));
            paramaters.Add(new QueryParameter(_view, "flat"));
            paramaters.Add(new QueryParameter(_media, "none"));

            string getAllUsersAlbumsUrl = OAuth.GenerateURL(ApiUrl, relativePath, _getAlbumMethod, Token, paramaters);

            XmlResponseMessage getAllUsersAlbumsResponseMessage = GetXmlResponseMessageFromUrl(getAllUsersAlbumsUrl, _getAlbumMethod);

            return(AlbumList.CreateFromXmlResponseMessage(getAllUsersAlbumsResponseMessage));
        }