- Timestamp:
- Oct 3, 2011, 5:09:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/Service/PwgImagesService.cs
r11903 r12336 48 48 return returnValue; 49 49 } 50 51 public PwgImageAdded addImageByMultiPartForm(FileInfo fileImage, Int32? imageId, Int32? categoryId, String imageName, String imageAuthor, String imageComment, Int32? imageLevel, List<PwgTag> imageTags)50 51 public PwgImageAdded addImageByMultiPartForm(FileInfo fileImage, Int32? imageId, Int32? AlbumId, String imageName, String imageAuthor, String imageComment, PwgConfidentLevelEnum? imageLevel, List<PwgTag> imageTags) 52 52 { 53 53 PwgImageAdded returnValue = new PwgImageAdded(); … … 55 55 try 56 56 { 57 PwgAddSimpleImageProxyResponse response = PwgImagesProxy.pwg_images_addSimple(fileImage, imageId, categoryId, imageName, imageAuthor, imageComment,imageLevel, imageTags);57 PwgAddSimpleImageProxyResponse response = PwgImagesProxy.pwg_images_addSimple(fileImage, imageId, AlbumId, imageName, imageAuthor, imageComment, (int) imageLevel, imageTags); 58 58 59 59 if (response.Retour != PwgBaseProxyReponseRetourEnum.Ok) … … 83 83 84 84 public Boolean addImage(FileInfo highResFile, FileInfo lowResFile, FileInfo thumbFile, String imageName, String imageAuthor, DateTime creationDate, 85 String authorComment, List<String> lst Categories, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel)85 String authorComment, List<String> lstAlbums, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel) 86 86 { 87 87 Boolean returnValue = false; … … 97 97 PwgBaseProxyReponse response = PwgImagesProxy.pwg_images_add( fileMd5sum, thunbMd5sum, HighresMd5sum, 98 98 imageMd5sum, imageFilename, imageName, imageAuthor, creationDate, 99 authorComment, lst Categories, lstTags, confidentLevel);99 authorComment, lstAlbums, lstTags, confidentLevel); 100 100 101 101 if (response.Retour != PwgBaseProxyReponseRetourEnum.Ok) … … 375 375 AvailableDate= pwgImg.AvailableDate, 376 376 Tags = pwgImg.Tags, 377 Categories = pwgImg.Categories};377 Albums = pwgImg.Albums}; 378 378 379 379 returnValue.ExtThumbail = response.ExtThumbail ; … … 551 551 } 552 552 553 returnValue. Categories = new List<PwgCategory>();554 if (response. Categories != null)555 { 556 foreach (Pwg CategoryProxyResponse catResp in response.Categories)557 { 558 Pwg Category aCat = PwgCategoriesService.ConvertProxyResponseToDTO(catResp);559 returnValue. Categories.Add(aCat);553 returnValue.Albums = new List<PwgAlbum>(); 554 if (response.Albums != null) 555 { 556 foreach (PwgAlbumProxyResponse catResp in response.Albums) 557 { 558 PwgAlbum aCat = PwgAlbumsService.ConvertProxyResponseToDTO(catResp); 559 returnValue.Albums.Add(aCat); 560 560 } 561 561 }
Note: See TracChangeset
for help on using the changeset viewer.