Closed sugls closed 7 years ago
This bug was fixed a few days ago in c47fc0a786aaaf31a2e2d3cd9d4b60b672b42af2
Using the current master branch and slightly modifying your code, this runs perfectly fine for me:
ApiConfig config = new ApiConfig();
config.setKey(key);
RiotApi api = new RiotApi(config);
try {
List<LeagueList> list = api.getLeagueBySummonerId(Platform.KR, 27971322);
for (LeagueList leagueList : list) {
System.out.println(leagueList);
}
} catch (RiotApiException e) {
e.printStackTrace();
}
We might change List to Set in a future update to fully comply with the Riot Api -- but for now this works just fine :)
thanks for your answer,it works well now
hello,I got a error when run the following java code
the console output as following show
In RiotApi.java source file , i found the method
and the ApiMethod GetLeagueBySummonerId set the ReturnType is Gson's
TypeToken<List<LeagueList>>
, not the method return typeMap<String, List<LeagueList>>
btw , in riot api document the api returned a Set
so could you fix it.