Changeset 11901
- Timestamp:
- Aug 2, 2011, 11:18:05 PM (13 years ago)
- Location:
- extensions/PiwigoLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/DTO/PwgCategoryPhotoDeletionModeEnum.cs
r11878 r11901 1 1 using System; 2 using System.Collections.Generic; 2 3 using System.Xml.Serialization; 4 3 5 4 6 namespace Com.Piwigo.Lib.DTO 5 7 { 6 7 8 [Serializable()] 8 [XmlRoot(ElementName = "Pwg CategoryPhotoDeletionModeEnum")]9 [XmlRoot(ElementName = "PwgSessionStatusEnum")] 9 10 public enum PwgCategoryPhotoDeletionModeEnum : int 10 11 { 11 12 [XmlEnum("unknow")] 12 13 Unknow = 0, 13 [XmlEnum("no _delete")]14 [XmlEnum("none")] 14 15 None = 1, 15 [XmlEnum(" delete_orphans")]16 [XmlEnum("orphan-only")] 16 17 OrphansOnly = 2, 17 [XmlEnum(" force_delete")]18 ForceAll = 318 [XmlEnum("all")] 19 all = 3 19 20 } 20 21 } -
extensions/PiwigoLib/PiwigoLib/PiwigoLib.csproj
r11890 r11901 51 51 </ItemGroup> 52 52 <ItemGroup> 53 <Compile Include="DTO\PwgCategory.cs" /> 53 54 <Compile Include="DTO\PwgConfidentLevelEnum.cs" /> 54 55 <Compile Include="DTO\PwgFileTypeEnum.cs" /> 55 56 <Compile Include="DTO\PwgCategoryPhotoDeletionModeEnum.cs" /> 56 <Compile Include="DTO\PwgCategory.cs" />57 57 <Compile Include="DTO\PwgImage.cs" /> 58 58 <Compile Include="DTO\Helper\PwgEnumHelper.cs" /> -
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r11890 r11901 46 46 //List<PwgTag> lstTag = PwgServiceProvider.Instance.PwgTagsService.GetAdminListOfTag(); 47 47 48 Int32 Page = 0;49 Int32 PerPage = 0;50 Int32 Count = 0;48 //Int32 Page = 0; 49 //Int32 PerPage = 0; 50 //Int32 Count = 0; 51 51 52 List<PwgImage> lstImgTag = PwgServiceProvider.Instance.PwgTagsService.GetListOfImagesFormTags(new List<Int32>() { 1, 7 },53 null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,54 ref Page, ref PerPage, ref Count);52 //List<PwgImage> lstImgTag = PwgServiceProvider.Instance.PwgTagsService.GetListOfImagesFormTags(new List<Int32>() { 1, 7 }, 53 // null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 54 // ref Page, ref PerPage, ref Count); 55 55 56 List<PwgImage> lstImgCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfImagesFormCategory(1,57 null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,58 ref Page, ref PerPage, ref Count);56 //List<PwgImage> lstImgCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfImagesFormCategory(1, 57 // null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 58 // ref Page, ref PerPage, ref Count); 59 59 60 60 //Console.WriteLine("lstImg : Page " + Page.ToString() + " PerPage " + PerPage); … … 74 74 //lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 75 75 76 FileInfo fiBig = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg"); 77 FileInfo fiThumb = new FileInfo(MakeThumb(fiBig,"C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n_thum.jpg",64)); 78 FileInfo fiLow = new FileInfo(MakeThumb(fiBig,"C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n_low.jpg",256)); 76 //FileInfo fiBig = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg"); 77 //FileInfo fiThumb = new FileInfo(MakeThumb(fiBig,"C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n_thum.jpg",64)); 78 //FileInfo fiLow = new FileInfo(MakeThumb(fiBig,"C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n_low.jpg",256)); 79 80 FileInfo fiBig = new FileInfo("C:\\temp\\Oryx.jpg"); 81 FileInfo fiThumb = new FileInfo(MakeThumb(fiBig, "C:\\temp\\Oryx_thumb.jpg", 64)); 82 FileInfo fiLow = new FileInfo(MakeThumb(fiBig, "C:\\temp\\Oryx_low.jpg", 256)); 79 83 80 84 //PwgImageAdded imgAdd = PwgServiceProvider.Instance.PwgImagesService.addImageByMultiPartForm(fiBig, null, 1, "benoit", "byarl", "test upload", 0, new List<PwgTag>() { new PwgTag() { Name = "Benoit" }, new PwgTag() { Name = "Noé" } });
Note: See TracChangeset
for help on using the changeset viewer.