source: extensions/PiwigoLib/PiwigoLib/Proxy/PwgTagsProxy.cs @ 3816

Last change on this file since 3816 was 3816, checked in by bayral, 15 years ago

Initial import

File size: 1009 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5using Com.Piwigo.Lib.DTO;
6using System.Web;
7using Com.Piwigo.Lib.Proxy.Response;
8
9namespace Com.Piwigo.Lib.Proxy
10{
11    static class PwgTagsProxy
12    {
13        static public PwgTagsProxyResponse pwg_tags_getList(Boolean sortedByCounter)
14        {
15            PwgTagsProxyResponse response = null;
16            try
17            {
18                StringBuilder data = new StringBuilder();
19                data.Append("sort_by_counter=" + HttpUtility.UrlEncode(sortedByCounter.ToString().ToLower()));
20
21                response = PwgGenericProxy<PwgTagsProxyResponse>.Get(
22                                PwgConfigProxy.PwgServeurUriBuilder.Uri,
23                                "pwg.tags.getList", data.ToString());
24            }
25            catch (Exception ex)
26            {
27                throw new PwgProxyException("pwg_tags_getList", ex);
28            }
29            return response;
30
31        }
32    }
33
34}
35
Note: See TracBrowser for help on using the repository browser.