@@ -2899,26 +2899,26 @@ public List<String> getHelpCenterLocales() {
2899
2899
*/
2900
2900
public Iterable <Article > getArticles () {
2901
2901
return new PagedIterable <>(
2902
- cnst ("/help_center/articles.json" ), handleList (Article .class , "articles" ));
2902
+ cbp ("/help_center/articles.json" ), handleList (Article .class , "articles" ));
2903
2903
}
2904
2904
2905
2905
public Iterable <Article > getArticles (String locale ) {
2906
2906
return new PagedIterable <>(
2907
- tmpl ("/help_center/{locale}/articles.json" ).set ("locale" , locale ),
2907
+ cbp ("/help_center/{locale}/articles.json" ).set ("locale" , locale ),
2908
2908
handleList (Article .class , "articles" ));
2909
2909
}
2910
2910
2911
2911
public Iterable <Article > getArticles (Category category ) {
2912
2912
checkHasId (category );
2913
2913
return new PagedIterable <>(
2914
- tmpl ("/help_center/categories/{id}/articles.json" ).set ("id" , category .getId ()),
2914
+ cbp ("/help_center/categories/{id}/articles.json" ).set ("id" , category .getId ()),
2915
2915
handleList (Article .class , "articles" ));
2916
2916
}
2917
2917
2918
2918
public Iterable <Article > getArticles (Category category , String locale ) {
2919
2919
checkHasId (category );
2920
2920
return new PagedIterable <>(
2921
- tmpl ("/help_center/{locale}/categories/{id}/articles.json" )
2921
+ cbp ("/help_center/{locale}/categories/{id}/articles.json" )
2922
2922
.set ("id" , category .getId ())
2923
2923
.set ("locale" , locale ),
2924
2924
handleList (Article .class , "articles" ));
@@ -2927,14 +2927,14 @@ public Iterable<Article> getArticles(Category category, String locale) {
2927
2927
public Iterable <Article > getArticles (Section section ) {
2928
2928
checkHasId (section );
2929
2929
return new PagedIterable <>(
2930
- tmpl ("/help_center/sections/{id}/articles.json" ).set ("id" , section .getId ()),
2930
+ cbp ("/help_center/sections/{id}/articles.json" ).set ("id" , section .getId ()),
2931
2931
handleList (Article .class , "articles" ));
2932
2932
}
2933
2933
2934
2934
public Iterable <Article > getArticles (Section section , String locale ) {
2935
2935
checkHasId (section );
2936
2936
return new PagedIterable <>(
2937
- tmpl ("/help_center/{locale}/sections/{id}/articles.json" )
2937
+ cbp ("/help_center/{locale}/sections/{id}/articles.json" )
2938
2938
.set ("id" , section .getId ())
2939
2939
.set ("locale" , locale ),
2940
2940
handleList (Article .class , "articles" ));
@@ -2963,7 +2963,7 @@ public Article getArticle(long id) {
2963
2963
2964
2964
public Iterable <Translation > getArticleTranslations (Long articleId ) {
2965
2965
return new PagedIterable <>(
2966
- tmpl ("/help_center/articles/{articleId}/translations.json" ).set ("articleId" , articleId ),
2966
+ cbp ("/help_center/articles/{articleId}/translations.json" ).set ("articleId" , articleId ),
2967
2967
handleList (Translation .class , "translations" ));
2968
2968
}
2969
2969
0 commit comments