Ignore:
Timestamp:
Oct 10, 2010, 10:45:43 PM (14 years ago)
Author:
bayral
Message:

Piwigolib is now modify for mask the implementation of proxy.
Add start version of piwigo WPF

Location:
extensions/PiwigoLib/PiwigoLib/Service
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoLib/Service/PwgCategoriesService.cs

    r3837 r7149  
    77using Com.Piwigo.Lib.Proxy.Response;
    88using Com.Piwigo.Lib.DTO.Helper;
     9using Com.Piwigo.Lib.IService;
    910
    1011namespace Com.Piwigo.Lib.Service
    1112{
    1213
    13     static public class PwgCategoriesService
     14    internal sealed class PwgCategoriesService : IPwgCategoriesService
    1415    {
    1516        /// <summary>
     
    1819        /// <param name="sortedByCounter"></param>
    1920        /// <returns></returns>
    20         static public List<PwgCategory> GetListOfCategory(Int32? CatgeroryId, Boolean? Recursive, Boolean? PublicOnly)
     21        public List<PwgCategory> GetListOfCategory(Int32? CatgeroryId, Boolean? Recursive, Boolean? PublicOnly)
    2122        {
    2223            List<PwgCategory> returnValue = new List<PwgCategory>();
     
    5556        /// </summary>
    5657        /// <returns></returns>
    57         static public List<PwgCategory> GetAdminListOfCategory()
     58        public List<PwgCategory> GetAdminListOfCategory()
    5859        {
    5960            List<PwgCategory> returnValue = new List<PwgCategory>();
     
    9697        /// <param name="messageInfo">Message returned by the server</param>
    9798        /// <returns>false, if a error occurs</returns>
    98         static public 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)
    99100        {
    100101            Boolean returnValue = false;
     
    139140        /// <param name="categoryComment"></param>
    140141        /// <returns></returns>
    141         static public Boolean UpdateCategoryInfo(Int32 IdCat, String categoryName, String categoryComment)
     142        public Boolean UpdateCategoryInfo(Int32 IdCat, String categoryName, String categoryComment)
    142143        {
    143144            Boolean returnValue = false;
     
    195196        /// <param name="CountReturned"></param>
    196197        /// <returns></returns>
    197         static public List<PwgImage> GetListOfImagesFormCategory(Int32 categoryId,
     198        public List<PwgImage> GetListOfImagesFormCategory(Int32 categoryId,
    198199                                                    Boolean? recursive,
    199200                                                    Int32? perPage,
     
    269270        /// <param name="response"></param>
    270271        /// <param name="session"></param>
    271         static public List<PwgCategory> ConvertProxyResponseToDTO(PwgCategoriesProxyResponse response)
     272        internal static List<PwgCategory> ConvertProxyResponseToDTO(PwgCategoriesProxyResponse response)
    272273        {
    273274            List<PwgCategory> returnValue = new List<PwgCategory>();
     
    287288        /// <param name="response"></param>
    288289        /// <param name="session"></param>
    289         static public PwgCategory ConvertProxyResponseToDTO(PwgCategoryProxyResponse response)
     290        internal static PwgCategory ConvertProxyResponseToDTO(PwgCategoryProxyResponse response)
    290291        {
    291292            PwgCategory returnValue = new PwgCategory();
  • extensions/PiwigoLib/PiwigoLib/Service/PwgImagesService.cs

    r3861 r7149  
    88using Com.Piwigo.Lib.Proxy.Response;
    99using Com.Piwigo.Lib.DTO.Helper;
     10using Com.Piwigo.Lib.IService;
    1011
    1112namespace Com.Piwigo.Lib.Service
    1213{
    1314
    14     static public class PwgImagesService
     15    internal sealed class PwgImagesService : IPwgImagesService
    1516    {
    16         static public PwgImageRate RateImage(Int32 imageId, Int32 imageRate)
     17        public PwgImageRate RateImage(Int32 imageId, Int32 imageRate)
    1718        {
    1819            PwgImageRate returnValue = new PwgImageRate();
     
    5253        /// <param name="response"></param>
    5354        /// <param name="session"></param>
    54         static public PwgImageRate ConvertProxyResponseToDTO(PwgImageRateProxyResponse response)
     55        internal static PwgImageRate ConvertProxyResponseToDTO(PwgImageRateProxyResponse response)
    5556        {
    5657            PwgImageRate returnValue = new PwgImageRate();
     
    8283        /// <param name="response"></param>
    8384        /// <param name="session"></param>
    84         static public void ConvertProxyResponseToDTO(PwgImagesProxyResponse response,
     85        internal static void ConvertProxyResponseToDTO(PwgImagesProxyResponse response,
    8586                                                      List<PwgImage> lstImage,
    8687                                                      ref Int32 Page, ref Int32 PerPagee, ref Int32 Count)
     
    9495        /// <param name="response"></param>
    9596        /// <param name="session"></param>
    96         static public void ConvertProxyResponseToDTO(PwgImageListProxyResponse response,
     97        internal static void ConvertProxyResponseToDTO(PwgImageListProxyResponse response,
    9798                                                      List<PwgImage> lstImage,
    9899                                                      ref Int32 Page, ref Int32 PerPagee, ref Int32 Count)
     
    116117        /// <param name="response"></param>
    117118        /// <param name="session"></param>
    118         static public PwgImage ConvertProxyResponseToDTO(PwgImageProxyResponse response)
     119        internal static PwgImage ConvertProxyResponseToDTO(PwgImageProxyResponse response)
    119120        {
    120121            PwgImage returnValue = new PwgImage();
  • extensions/PiwigoLib/PiwigoLib/Service/PwgSessionService.cs

    r3816 r7149  
    77using Com.Piwigo.Lib.Proxy.Response;
    88using Com.Piwigo.Lib.DTO.Helper;
     9using Com.Piwigo.Lib.IService;
    910
    1011namespace Com.Piwigo.Lib.Service
    1112{
    12  
    13     static public class PwgSessionService
     13
     14    internal sealed class PwgSessionService : IPwgSessionService
    1415    {
    15         static private PwgSession PwgSession = null;
     16        private PwgSession PwgSession = null;
    1617
    1718        /// <summary>
     
    1920        /// </summary>
    2021        /// <returns></returns>
    21         static public PwgSession GetPwgSession()
     22        public PwgSession GetPwgSession()
    2223        {
    2324            if (PwgSession == null)
     
    5960        /// <param name="Password"></param>
    6061        /// <returns></returns>
    61         static public PwgSession Login(String UserName, String Password)
     62        public PwgSession Login(String UserName, String Password)
    6263        {
    6364            PwgSession = null;
     
    8889        }
    8990
    90         static public PwgSession Logout()
     91        public PwgSession Logout()
    9192        {
    9293            PwgSession = null;
     
    121122        /// <param name="response"></param>
    122123        /// <param name="session"></param>
    123         static private void ConvertProxyResponseToDTO(PwgSessionProxyResponse response, ref PwgSession session)
     124        internal static void ConvertProxyResponseToDTO(PwgSessionProxyResponse response, ref PwgSession session)
    124125        {
    125126            if (session == null)
  • extensions/PiwigoLib/PiwigoLib/Service/PwgTagsService.cs

    r3834 r7149  
    77using Com.Piwigo.Lib.Proxy.Response;
    88using Com.Piwigo.Lib.DTO.Helper;
     9using Com.Piwigo.Lib.IService;
    910
    1011namespace Com.Piwigo.Lib.Service
    1112{
    1213
    13     static public class PwgTagsService
     14    internal sealed class PwgTagsService : IPwgTagsService
    1415    {
    1516        /// <summary>
     
    1819        /// <param name="sortedByCounter"></param>
    1920        /// <returns></returns>
    20         static public List<PwgTag> GetListOfTag(Boolean? sortedByCounter)
     21        public List<PwgTag> GetListOfTag(Boolean? sortedByCounter)
    2122        {
    2223            List<PwgTag> returnValue = new List<PwgTag>();
     
    5657        /// <param name="sortedByCounter"></param>
    5758        /// <returns></returns>
    58         static public List<PwgTag> GetAdminListOfTag()
     59        public List<PwgTag> GetAdminListOfTag()
    5960        {
    6061            List<PwgTag> returnValue = new List<PwgTag>();
     
    9495        /// <param name="tagName"></param>
    9596        /// <returns></returns>
    96         static public Boolean AddTag(String tagName, ref Int32 newId, ref String messageInfo)
     97        public Boolean AddTag(String tagName, ref Int32 newId, ref String messageInfo)
    9798        {
    9899            Boolean returnValue = false;
     
    154155        /// <param name="CountReturned"></param>
    155156        /// <returns></returns>
    156         static public List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId,
     157        public List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId,
    157158                                                            List<String> tagsUrlName,
    158159                                                            List<String> tagsName,
     
    233234        /// <param name="response"></param>
    234235        /// <param name="session"></param>
    235         static public List<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response)
     236        internal static List<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response)
    236237        {
    237238            List<PwgTag> returnValue = new List<PwgTag>();
     
    251252        /// <param name="response"></param>
    252253        /// <param name="session"></param>
    253         static public PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response)
     254        internal static PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response)
    254255        {
    255256            PwgTag returnValue = new PwgTag();
Note: See TracChangeset for help on using the changeset viewer.