Ignore:
Timestamp:
Sep 6, 2009, 1:32:38 AM (15 years ago)
Author:
bayral
Message:

add tag list to image in image list retruned by pwg.tags.getImage

File:
1 edited

Legend:

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

    r3827 r3828  
    8989        }
    9090
    91 
     91        /// <summary>
     92        /// Add a Tag
     93        /// </summary>
     94        /// <param name="tagName"></param>
     95        /// <returns></returns>
    9296        static public Boolean AddTag(String tagName)
    9397        {
     
    124128
    125129        /// <summary>
    126         /// private: convert response to dto object
    127         /// </summary>
    128         /// <param name="response"></param>
    129         /// <param name="session"></param>
    130         static private List<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response)
    131         {
    132             List<PwgTag> returnValue = new List<PwgTag>();
    133 
    134             foreach (PwgTagProxyResponse respTag in response.Tags)
    135             {
    136                 returnValue.Add(ConvertProxyResponseToDTO(respTag));
    137             }
    138 
    139             return returnValue;
    140         }
    141 
     130        /// Return the list of image form a list of tag
     131        /// </summary>
     132        /// <param name="tagsId"></param>
     133        /// <param name="tagsUrlName"></param>
     134        /// <param name="tagsName"></param>
     135        /// <param name="tagModeAnd"></param>
     136        /// <param name="perPage"></param>
     137        /// <param name="Page"></param>
     138        /// <param name="Order"></param>
     139        /// <param name="minRate"></param>
     140        /// <param name="maxRate"></param>
     141        /// <param name="minHit"></param>
     142        /// <param name="maxHit"></param>
     143        /// <param name="minDateAvailable"></param>
     144        /// <param name="maxDateAvailable"></param>
     145        /// <param name="minDateCreated"></param>
     146        /// <param name="maxDateCreated"></param>
     147        /// <param name="minRatio"></param>
     148        /// <param name="maxRatio"></param>
     149        /// <param name="withThumbnail"></param>
     150        /// <param name="PageReturned"></param>
     151        /// <param name="PerPageeReturned"></param>
     152        /// <param name="CountReturned"></param>
     153        /// <returns></returns>
    142154        static public List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId,
    143155                                                            List<String> tagsUrlName,
     
    213225        }
    214226
     227
    215228        /// <summary>
    216229        /// private: convert response to dto object
     
    218231        /// <param name="response"></param>
    219232        /// <param name="session"></param>
    220         static private PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response)
     233        static public List<PwgTag> ConvertProxyResponseToDTO(PwgTagsProxyResponse response)
     234        {
     235            List<PwgTag> returnValue = new List<PwgTag>();
     236
     237            foreach (PwgTagProxyResponse respTag in response.Tags)
     238            {
     239                returnValue.Add(ConvertProxyResponseToDTO(respTag));
     240            }
     241
     242            return returnValue;
     243        }
     244
     245
     246        /// <summary>
     247        /// private: convert response to dto object
     248        /// </summary>
     249        /// <param name="response"></param>
     250        /// <param name="session"></param>
     251        static public PwgTag ConvertProxyResponseToDTO(PwgTagProxyResponse response)
    221252        {
    222253            PwgTag returnValue = new PwgTag();
Note: See TracChangeset for help on using the changeset viewer.