Changeset 3828
- Timestamp:
- Sep 6, 2009, 1:32:38 AM (15 years ago)
- Location:
- extensions/PiwigoLib/PiwigoLib/Service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/Service/PwgImagesService.cs
r3827 r3828 88 88 } 89 89 90 returnValue.Tags = new List<PwgTag>(); 91 foreach (PwgTagProxyResponse tagResp in response.Tags) 92 { 93 PwgTag aTag = PwgTagsService.ConvertProxyResponseToDTO(tagResp); 94 returnValue.Tags.Add(aTag); 95 } 96 90 97 } 91 98 catch (Exception ex) -
extensions/PiwigoLib/PiwigoLib/Service/PwgTagsService.cs
r3827 r3828 89 89 } 90 90 91 91 /// <summary> 92 /// Add a Tag 93 /// </summary> 94 /// <param name="tagName"></param> 95 /// <returns></returns> 92 96 static public Boolean AddTag(String tagName) 93 97 { … … 124 128 125 129 /// <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> 142 154 static public List<PwgImage> GetListOfImagesFormTags(List<Int32> tagsId, 143 155 List<String> tagsUrlName, … … 213 225 } 214 226 227 215 228 /// <summary> 216 229 /// private: convert response to dto object … … 218 231 /// <param name="response"></param> 219 232 /// <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) 221 252 { 222 253 PwgTag returnValue = new PwgTag();
Note: See TracChangeset
for help on using the changeset viewer.