Simplify ApiUrl

This commit is contained in:
Stuart Boston
2015-03-04 09:37:59 +00:00
parent 3828eca965
commit dd3e04e6d1
16 changed files with 155 additions and 116 deletions
@@ -92,7 +92,7 @@ public class TmdbCollections extends AbstractMethod {
parameters.add(Param.ID, collectionId);
parameters.add(Param.LANGUAGE, language);
URL url = new ApiUrl(apiKey, MethodBase.COLLECTION).setSubMethod(MethodSub.IMAGES).buildUrl(parameters);
URL url = new ApiUrl(apiKey, MethodBase.COLLECTION).subMethod(MethodSub.IMAGES).buildUrl(parameters);
String webpage = httpTools.getRequest(url);
try {