Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Text; |
---|
4 | |
---|
5 | using Com.Piwigo.Lib.DTO; |
---|
6 | using System.Web; |
---|
7 | using Com.Piwigo.Lib.Proxy.Response; |
---|
8 | |
---|
9 | namespace 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.