public List <string> FetchAlbumsList() { List <string> albumList = new List <string>(); foreach (Album album in r_AppManager.FetchAlbumsUserCollection()) { if (album.Message != null) { albumList.Add(album.Message); } } return(albumList); }
private void updateTagsPerFriend(List <Friend> io_Friends) { try { foreach (Album albumOfUser in r_AppManager.FetchAlbumsUserCollection()) { foreach (Photo photo in albumOfUser.Photos) { foreach (PhotoTag tag in photo.Tags) { User friend = tag.User; io_Friends.Find(i_FriendUser => i_FriendUser.FriendUser.Email == friend.Email).NumOfTags++; } } } } catch (Exception e) { throw new Exception(k_MessageError); } }