public void ExecuteGame(FacebookObjectCollection <Album> i_Albums) { foreach (Album album in i_Albums) { if (!string.IsNullOrEmpty(album.Location) && !string.IsNullOrEmpty(album.PictureAlbumURL)) { // album has picture and location AlbumsGameList.Add(album); } } }
public void ExecuteGame(FacebookObjectCollection <Album> i_Albums) { foreach (Album album in i_Albums) { if ((album.Count > 0) && !string.IsNullOrEmpty(album.PictureAlbumURL)) { // album has picture and positive num of pictures AlbumsGameList.Add(album); } } }