示例#1
0
        public DiscretePicasaAlbum[] ByDecodedName(string decodedName)
        {
            List <DiscretePicasaAlbum> result = new List <DiscretePicasaAlbum> ();

            foreach (PicasaEntry entry in picasaAlbums)
            {
                DiscretePicasaAlbum album = GoogleNameUtilities.DecodeGoogleAlbumName(picasaAlbum: entry);
                if (album != null && album.Name == decodedName)
                {
                    result.Add(album);
                }
            }
            return(result.ToArray());
        }
示例#2
0
        public string[] DecodedNames()
        {
            HashSet <string> albumNames = new HashSet <string> ();

            foreach (PicasaEntry entry in picasaAlbums)
            {
                DiscretePicasaAlbum album = GoogleNameUtilities.DecodeGoogleAlbumName(picasaAlbum: entry);
                if (album != null)
                {
                    albumNames.Add(album.Name);
                }
            }
            return(albumNames.ToArray());
        }