Ignore:
Timestamp:
Oct 3, 2011, 5:09:51 PM (13 years ago)
Author:
bayral
Message:

rename category to Albums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/TestPiwigoLib/Form1.cs

    r11904 r12336  
    5454                //    ref Page, ref PerPage, ref Count);
    5555
    56                 //List<PwgImage> lstImgCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfImagesFormCategory(1,
     56                //List<PwgImage> lstImgCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfImagesFormAlbum(1,
    5757                //    null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
    5858                //    ref Page, ref PerPage, ref Count);
     
    6060                //Console.WriteLine("lstImg : Page " + Page.ToString() + " PerPage " + PerPage);
    6161
    62                 List<PwgCategory> lstadmCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory();
     62                List<PwgAlbum> lstadmCat = PwgServiceProvider.Instance.PwgAlbumsService.GetAdminListOfAlbum();
    6363
    64                 List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(0, true, false);
     64                List<PwgAlbum> lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfAlbum(0, true, false);
    6565
    6666                Int32 newid = 0;
    6767                String msg = String.Empty;
    6868                Boolean rc;
    69                 // rc = PwgServiceProvider.Instance.PwgCategoriesService.AddCategory("test_cat", 1, ref  newid, ref msg);
    70                 //List<PwgCategory> 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();
    7171                //Console.WriteLine(String.Format("newid : {0} message : {1}", newid,msg));
    72                 //rc = PwgServiceProvider.Instance.PwgCategoriesService.UpdateCategoryInfo(newid, "test2", "rename cat");
    73                 //Boolean rc = PwgServiceProvider.Instance.PwgCategoriesService.DeleteCategory(newid, sess.SecurityToken, PwgCategoryPhotoDeletionModeEnum.None);
    74                 //rc = PwgServiceProvider.Instance.PwgCategoriesService.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);
    7575
    76                 //lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory();
     76                //lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetAdminListOfAlbum();
    7777
    7878                //FileInfo fiBig = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg");
Note: See TracChangeset for help on using the changeset viewer.