Ejemplo n.º 1
0
 internal void GetInternal (int albumId, Action<BuddyCallResult<PhotoAlbum>> callback)
 {
     this.Client.Service.Pictures_PhotoAlbum_Get (this.Client.AppName, this.Client.AppPassword, this.AuthUser.Token,
                 this.AuthUser.ID.ToString (), albumId.ToString (), (bcr) =>
     {
         var result = bcr.Result;
         if (bcr.Error != BuddyError.None) {
             callback (BuddyResultCreator.Create<PhotoAlbum> (null, bcr.Error));
             return;
         }
         PhotoAlbum album = new PhotoAlbum (this.Client, this.AuthUser, albumId);
         foreach (var d in result)
             album.pictures.Add (new Picture (this.Client, this.AuthUser, d));
         {
             callback (BuddyResultCreator.Create (album, bcr.Error));
             return; }
         ;
     });
     return;
 }