public GoogleAlbum(GooglePhotosService service, AlbumsQuery albumsQuery, string name) : base(name) { this.service = service; this.albumsQuery = albumsQuery; Directory = null; picasaAlbums = albumsQuery.ByDecodedName(decodedName: Name); }
public override IEnumerable <Album> GetAlbums() { AlbumsQuery albumsQuery = new AlbumsQuery(service); string[] albumNames = albumsQuery.DecodedNames(); List <GoogleAlbum> result = new List <GoogleAlbum> (); foreach (string albumName in albumNames) { result.Add(new GoogleAlbum(service: service, albumsQuery: albumsQuery, name: albumName)); } return(result.OrderBy(a => a.Name)); }