示例#1
0
 internal void GetPicturesInternal(int albumId, InternalModels.DataContract_VirtualPhotoAlbumInformation info, Action <BuddyCallResult <VirtualAlbum> > callback)
 {
     this.Client.Service.Pictures_VirtualAlbum_Get(this.Client.AppName, this.Client.AppPassword, this.AuthUser.Token, albumId.ToString(), (bcr) =>
     {
         var result = bcr.Result;
         if (bcr.Error != BuddyError.None)
         {
             callback(BuddyResultCreator.Create <VirtualAlbum> (null, bcr.Error));
             return;
         }
         VirtualAlbum album = new VirtualAlbum(this.Client, this.AuthUser, info);
         album.AddPictures(result);
         {
             callback(BuddyResultCreator.Create(album, bcr.Error));
             return;
         }
         ;
     });
     return;
 }
 internal void GetPicturesInternal(int albumId, InternalModels.DataContract_VirtualPhotoAlbumInformation info, Action<BuddyCallResult<VirtualAlbum>> callback)
 {
     this.Client.Service.Pictures_VirtualAlbum_Get (this.Client.AppName, this.Client.AppPassword, this.AuthUser.Token, albumId.ToString (), (bcr) =>
     {
         var result = bcr.Result;
         if (bcr.Error != BuddyError.None) {
             callback (BuddyResultCreator.Create<VirtualAlbum> (null, bcr.Error));
             return;
         }
         VirtualAlbum album = new VirtualAlbum (this.Client, this.AuthUser, info);
         album.AddPictures (result);
         {
             callback (BuddyResultCreator.Create (album, bcr.Error));
             return; }
         ;
     });
     return;
 }