Changeset 12336 for extensions/PiwigoLib/TestPiwigoLib/Form1.cs
- Timestamp:
- Oct 3, 2011, 5:09:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r11904 r12336 54 54 // ref Page, ref PerPage, ref Count); 55 55 56 //List<PwgImage> lstImgCat = PwgServiceProvider.Instance.Pwg CategoriesService.GetListOfImagesFormCategory(1,56 //List<PwgImage> lstImgCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfImagesFormAlbum(1, 57 57 // null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 58 58 // ref Page, ref PerPage, ref Count); … … 60 60 //Console.WriteLine("lstImg : Page " + Page.ToString() + " PerPage " + PerPage); 61 61 62 List<Pwg Category> lstadmCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory();62 List<PwgAlbum> lstadmCat = PwgServiceProvider.Instance.PwgAlbumsService.GetAdminListOfAlbum(); 63 63 64 List<Pwg Category> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(0, true, false);64 List<PwgAlbum> lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfAlbum(0, true, false); 65 65 66 66 Int32 newid = 0; 67 67 String msg = String.Empty; 68 68 Boolean rc; 69 // rc = PwgServiceProvider.Instance.Pwg CategoriesService.AddCategory("test_cat", 1, ref newid, ref msg);70 //List<Pwg Category> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory();69 // rc = PwgServiceProvider.Instance.PwgAlbumsService.AddAlbum("test_cat", 1, ref newid, ref msg); 70 //List<PwgAlbum> lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetAdminListOfAlbum(); 71 71 //Console.WriteLine(String.Format("newid : {0} message : {1}", newid,msg)); 72 //rc = PwgServiceProvider.Instance.Pwg CategoriesService.UpdateCategoryInfo(newid, "test2", "rename cat");73 //Boolean rc = PwgServiceProvider.Instance.Pwg CategoriesService.DeleteCategory(newid, sess.SecurityToken, PwgCategoryPhotoDeletionModeEnum.None);74 //rc = PwgServiceProvider.Instance.Pwg CategoriesService.MoveCategory(new List<Int32>() { newid }, PwgCategory.RootCategoryId, sess.SecurityToken);72 //rc = PwgServiceProvider.Instance.PwgAlbumsService.UpdateAlbumInfo(newid, "test2", "rename cat"); 73 //Boolean rc = PwgServiceProvider.Instance.PwgAlbumsService.DeleteAlbum(newid, sess.SecurityToken, PwgAlbumPhotoDeletionModeEnum.None); 74 //rc = PwgServiceProvider.Instance.PwgAlbumsService.MoveAlbum(new List<Int32>() { newid }, PwgAlbum.RootAlbumId, sess.SecurityToken); 75 75 76 //lstCat = PwgServiceProvider.Instance.Pwg CategoriesService.GetAdminListOfCategory();76 //lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetAdminListOfAlbum(); 77 77 78 78 //FileInfo fiBig = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg");
Note: See TracChangeset
for help on using the changeset viewer.