Changeset 7149 for extensions/PiwigoLib/PiwigoLib/Service
- Timestamp:
- Oct 10, 2010, 10:45:43 PM (14 years ago)
- Location:
- extensions/PiwigoLib/PiwigoLib/Service
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/Service/PwgCategoriesService.cs
r3837 r7149 7 7 using Com.Piwigo.Lib.Proxy.Response; 8 8 using Com.Piwigo.Lib.DTO.Helper; 9 using Com.Piwigo.Lib.IService; 9 10 10 11 namespace Com.Piwigo.Lib.Service 11 12 { 12 13 13 static public classPwgCategoriesService14 internal sealed class PwgCategoriesService : IPwgCategoriesService 14 15 { 15 16 /// <summary> … … 18 19 /// <param name="sortedByCounter"></param> 19 20 /// <returns></returns> 20 staticpublic List<PwgCategory> GetListOfCategory(Int32? CatgeroryId, Boolean? Recursive, Boolean? PublicOnly)21 public List<PwgCategory> GetListOfCategory(Int32? CatgeroryId, Boolean? Recursive, Boolean? PublicOnly) 21 22 { 22 23 List<PwgCategory> returnValue = new List<PwgCategory>(); … … 55 56 /// </summary> 56 57 /// <returns></returns> 57 staticpublic List<PwgCategory> GetAdminListOfCategory()58 public List<PwgCategory> GetAdminListOfCategory() 58 59 { 59 60 List<PwgCategory> returnValue = new List<PwgCategory>(); … … 96 97 /// <param name="messageInfo">Message returned by the server</param> 97 98 /// <returns>false, if a error occurs</returns> 98 staticpublic Boolean AddCategory(String categoryName, Int32? upperCatId, ref Int32 newId, ref String messageInfo)99 public Boolean AddCategory(String categoryName, Int32? upperCatId, ref Int32 newId, ref String messageInfo) 99 100 { 100 101 Boolean returnValue = false; … … 139 140 /// <param name="categoryComment"></param> 140 141 /// <returns></returns> 141 staticpublic Boolean UpdateCategoryInfo(Int32 IdCat, String categoryName, String categoryComment)142 public Boolean UpdateCategoryInfo(Int32 IdCat, String categoryName, String categoryComment) 142 143 { 143 144 Boolean returnValue = false; … … 195 196 /// <param name="CountReturned"></param> 196 197 /// <returns></returns> 197 staticpublic List<PwgImage> GetListOfImagesFormCategory(Int32 categoryId,198 public List<PwgImage> GetListOfImagesFormCategory(Int32 categoryId, 198 199 Boolean? recursive, 199 200 Int32? perPage, … … 269 270 /// <param name="response"></param> 270 271 /// <param name="session"></param> 271 static public List<PwgCategory> ConvertProxyResponseToDTO(PwgCategoriesProxyResponse response)272 internal static List<PwgCategory> ConvertProxyResponseToDTO(PwgCategoriesProxyResponse response) 272 273 { 273 274 List<PwgCategory> returnValue = new List<PwgCategory>(); … … 287 288 /// <param name="response"></param> 288 289 /// <param name="session"></param> 289 static public PwgCategory ConvertProxyResponseToDTO(PwgCategoryProxyResponse response)290 internal static PwgCategory ConvertProxyResponseToDTO(PwgCategoryProxyResponse response) 290 291 { 291 292 PwgCategory returnValue = new PwgCategory(); -
extensions/PiwigoLib/PiwigoLib/Service/PwgImagesService.cs
r3861 r7149 8 8 using Com.Piwigo.Lib.Proxy.Response; 9 9 using Com.Piwigo.Lib.DTO.Helper; 10 using Com.Piwigo.Lib.IService; 10 11 11 12 namespace Com.Piwigo.Lib.Service 12 13 { 13 14 14 static public classPwgImagesService15 internal sealed class PwgImagesService : IPwgImagesService 15 16 { 16 staticpublic PwgImageRate RateImage(Int32 imageId, Int32 imageRate)17 public PwgImageRate RateImage(Int32 imageId, Int32 imageRate) 17 18 { 18 19 PwgImageRate returnValue = new PwgImageRate(); … … 52 53 /// <param name="response"></param> 53 54 /// <param name="session"></param> 54 static public PwgImageRate ConvertProxyResponseToDTO(PwgImageRateProxyResponse response)55 internal static PwgImageRate ConvertProxyResponseToDTO(PwgImageRateProxyResponse response) 55 56 { 56 57 PwgImageRate returnValue = new PwgImageRate(); … … 82 83 /// <param name="response"></param> 83 84 /// <param name="session"></param> 84 static public void ConvertProxyResponseToDTO(PwgImagesProxyResponse response,85 internal static void ConvertProxyResponseToDTO(PwgImagesProxyResponse response, 85 86 List<PwgImage> lstImage, 86 87 ref Int32 Page, ref Int32 PerPagee, ref Int32 Count) … … 94 95 /// <param name="response"></param> 95 96 /// <param name="session"></param> 96 static public void ConvertProxyResponseToDTO(PwgImageListProxyResponse response,97 internal static void ConvertProxyResponseToDTO(PwgImageListProxyResponse response, 97 98 List<PwgImage> lstImage, 98 99 ref Int32 Page, ref Int32 PerPagee, ref Int32 Count) … … 116 117 /// <param name="response"></param> 117 118 /// <param name="session"></param> 118 static public PwgImage ConvertProxyResponseToDTO(PwgImageProxyResponse response)119 internal static PwgImage ConvertProxyResponseToDTO(PwgImageProxyResponse response) 119 120 { 120 121 PwgImage returnValue = new PwgImage(); -
extensions/PiwigoLib/PiwigoLib/Service/PwgSessionService.cs
r3816 r7149 7 7 using Com.Piwigo.Lib.Proxy.Response; 8 8 using Com.Piwigo.Lib.DTO.Helper; 9 using Com.Piwigo.Lib.IService; 9 10 10 11 namespace Com.Piwigo.Lib.Service 11 12 { 12 13 static public classPwgSessionService13 14 internal sealed class PwgSessionService : IPwgSessionService 14 15 { 15 staticprivate PwgSession PwgSession = null;16 private PwgSession PwgSession = null; 16 17 17 18 /// <summary> … … 19 20 /// </summary> 20 21 /// <returns></returns> 21 staticpublic PwgSession GetPwgSession()22 public PwgSession GetPwgSession() 22 23 { 23 24 if (PwgSession == null) … … 59 60 /// <param name="Password"></param> 60 61 /// <returns></returns> 61 staticpublic PwgSession Login(String UserName, String Password)62 public PwgSession Login(String UserName, String Password) 62 63 { 63 64 PwgSession = null; … … 88 89 } 89 90 90 staticpublic PwgSession Logout()91 public PwgSession Logout() 91 92 { 92 93 PwgSession = null; … … 121 122 /// <param name="response"></param> 122 123 /// <param name="session"></param> 123 static privatevoid ConvertProxyResponseToDTO(PwgSessionProxyResponse response, ref PwgSession session)124 internal static void ConvertProxyResponseToDTO(PwgSessionProxyResponse response, ref PwgSession session) 124 125 { 125 126 if (session == null) -
extensions/PiwigoLib/PiwigoLib/Service/PwgTagsService.cs
r3834 r7149 7 7 using Com.Piwigo.Lib.Proxy.Response; 8 8 using Com.Piwigo.Lib.DTO.Helper; 9 using Com.Piwigo.Lib.IService; 9 10 10 11 namespace Com.Piwigo.Lib.Service 11 12 { 12 13 13 static public classPwgTagsService14 internal sealed class PwgTagsService : IPwgTagsService 14 15 { 15 16 /// <summary> … … 18 19 /// <param name="sortedByCounter"></param> 19 20 /// <returns></returns> 20 staticpublic List<PwgTag> GetListOfTag(Boolean? sortedByCounter)21 public List<PwgTag> GetListOfTag(Boolean? sortedByCounter) 21 22 { 22 23 List<PwgTag> returnValue = new List<PwgTag>(); … … 56 57 /// <param name="sortedByCounter"></param> 57 58 /// <returns></returns> 58 staticpublic List<PwgTag> GetAdminListOfTag()59 public List<PwgTag> GetAdminListOfTag() 59 60 { 60 61 List<PwgTag> returnValue = new List<PwgTag>(); … … 94 95 /// <param name="tagName"></param> 95 96 /// <returns></returns> 96 staticpublic Boolean AddTag(String tagName, ref Int32 newId, ref String messageInfo)97 public Boolean AddTag(String tagName, ref Int32 newId, ref String messageInfo) 97 98 { 98 99 Boolean returnValue = false; … … 154 155 /// <param name="CountReturned"></param> 155 156 /// <returns></returns> 156 staticpublic List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId,157 public List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId, 157 158 List<String> tagsUrlName, 158 159 List<String> tagsName, … … 233 234 /// <param name="response"></param> 234 235 /// <param name="session"></param> 235 static publicList<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response)236 internal static List<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response) 236 237 { 237 238 List<PwgTag> returnValue = new List<PwgTag>(); … … 251 252 /// <param name="response"></param> 252 253 /// <param name="session"></param> 253 static public PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response)254 internal static PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response) 254 255 { 255 256 PwgTag returnValue = new PwgTag();
Note: See TracChangeset
for help on using the changeset viewer.