Changeset 12336 for extensions/PiwigoLib/PiwigoLib/Proxy
- Timestamp:
- Oct 3, 2011, 5:09:51 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoLib/Proxy
- Files:
-
- 2 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/Proxy/PwgImagesProxy.cs
r11903 r12336 34 34 static internal PwgBaseProxyReponse pwg_images_add(String fileMd5sum, String thunbMd5sum, String HighresMd5sum, 35 35 String imageMd5sum, String imageFilename, String imageName, String imageAuthor, DateTime creationDate, 36 String authorComment,List<String> lst Categories, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel)36 String authorComment,List<String> lstAlbums, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel) 37 37 { 38 38 PwgBaseProxyReponse response = null; … … 50 50 PwgProxyReponseHelper.buildQueryFromValue<String>(imageAuthor, "author", ref firstOcc, data); 51 51 PwgProxyReponseHelper.buildQueryFromValue<String>(authorComment, "comment", ref firstOcc, data); 52 PwgProxyReponseHelper.buildQueryFromArray<String>(lst Categories, "categories", ref firstOcc, data);52 PwgProxyReponseHelper.buildQueryFromArray<String>(lstAlbums, "categories", ref firstOcc, data); 53 53 PwgProxyReponseHelper.buildQueryFromArray<String>(lstTags, "tag_ids", ref firstOcc, data); 54 54 PwgProxyReponseHelper.buildQueryFromValue<Int32>((int?)confidentLevel, "level", ref firstOcc, data); … … 136 136 /// <param name="fileImage"></param> 137 137 /// <param name="imageId"></param> 138 /// <param name=" categoryId"></param>138 /// <param name="AlbumId"></param> 139 139 /// <param name="imageName"></param> 140 140 /// <param name="imageAuthor"></param> … … 143 143 /// <param name="imageTags"></param> 144 144 /// <returns></returns> 145 static internal PwgAddSimpleImageProxyResponse pwg_images_addSimple(FileInfo fileImage, Int32? imageId, Int32? categoryId, String imageName, String imageAuthor, String imageComment, Int32? imageLevel, List<PwgTag> imageTags)145 static internal PwgAddSimpleImageProxyResponse pwg_images_addSimple(FileInfo fileImage, Int32? imageId, Int32? AlbumId, String imageName, String imageAuthor, String imageComment, Int32? imageLevel, List<PwgTag> imageTags) 146 146 { 147 147 PwgAddSimpleImageProxyResponse response = null; … … 155 155 dcFields.Add("method", "pwg.images.addSimple"); 156 156 PwgProxyReponseHelper.buildDicFieldFromValue<Int32>(imageId, "image_id", ref dcFields); 157 PwgProxyReponseHelper.buildDicFieldFromValue<Int32>( categoryId, "category", ref dcFields);157 PwgProxyReponseHelper.buildDicFieldFromValue<Int32>(AlbumId, "category", ref dcFields); 158 158 PwgProxyReponseHelper.buildDicFieldFromValue<Int32>(imageLevel, "level", ref dcFields); 159 159 PwgProxyReponseHelper.buildDicFieldFromValue<String>(imageName, "name", ref dcFields); -
extensions/PiwigoLib/PiwigoLib/Proxy/Response/PwgImagesProxyResponse.cs
r11890 r12336 32 32 33 33 [Serializable()] 34 [XmlRoot(ElementName = "categor ie")]34 [XmlRoot(ElementName = "category")] 35 35 public class PwgImageProxyResponse 36 36 { … … 62 62 [XmlArray("categories")] 63 63 [XmlArrayItem("category")] 64 public Pwg CategoryProxyResponse[] Categories { get; set; }64 public PwgAlbumProxyResponse[] Albums { get; set; } 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.