@@ -2904,13 +2904,31 @@ public Iterable<Article> getArticles(Category category) {
2904
2904
handleList (Article .class , "articles" ));
2905
2905
}
2906
2906
2907
+ public Iterable <Article > getArticles (Category category , String locale ) {
2908
+ checkHasId (category );
2909
+ return new PagedIterable <>(
2910
+ tmpl ("/help_center/{locale}/categories/{id}/articles.json" )
2911
+ .set ("id" , category .getId ())
2912
+ .set ("locale" , locale ),
2913
+ handleList (Article .class , "articles" ));
2914
+ }
2915
+
2907
2916
public Iterable <Article > getArticles (Section section ) {
2908
2917
checkHasId (section );
2909
2918
return new PagedIterable <>(
2910
2919
tmpl ("/help_center/sections/{id}/articles.json" ).set ("id" , section .getId ()),
2911
2920
handleList (Article .class , "articles" ));
2912
2921
}
2913
2922
2923
+ public Iterable <Article > getArticles (Section section , String locale ) {
2924
+ checkHasId (section );
2925
+ return new PagedIterable <>(
2926
+ tmpl ("/help_center/{locale}/sections/{id}/articles.json" )
2927
+ .set ("id" , section .getId ())
2928
+ .set ("locale" , locale ),
2929
+ handleList (Article .class , "articles" ));
2930
+ }
2931
+
2914
2932
public Iterable <Article > getArticlesIncrementally (Date startTime ) {
2915
2933
return new PagedIterable <>(
2916
2934
tmpl ("/help_center/incremental/articles.json{?start_time}" )
0 commit comments