示例#1
0
 public JSONObject getSummonerSpelByID(Long id) {
   Document summonerSpel = couch.getDataFromDatabase(CouchDB.SUMMONER_SPEL_ID + id.toString());
   summonerSpel.remove("_id");
   summonerSpel.remove("_rev");
   return summonerSpel.getJSONObject();
 }
示例#2
0
 public JSONObject getRuneByID(Long id) {
   Document rune = couch.getDataFromDatabase(CouchDB.RUNE_ID + id.toString());
   rune.remove("_id");
   rune.remove("_rev");
   return rune.getJSONObject();
 }
示例#3
0
 public JSONObject getItemByID(Long id) {
   Document item = couch.getDataFromDatabase(CouchDB.ITEM_ID + id.toString());
   item.remove("_id");
   item.remove("_rev");
   return item.getJSONObject();
 }
示例#4
0
 public JSONObject getMasteryByID(Long id) {
   Document mastery = couch.getDataFromDatabase(CouchDB.MASTERY_ID + id.toString());
   mastery.remove("_id");
   mastery.remove("_rev");
   return mastery.getJSONObject();
 }
示例#5
0
 public JSONObject getChampionByID(Long id) {
   Document champion = couch.getDataFromDatabase(CouchDB.CHAMPION_ID + id.toString());
   champion.remove("_id");
   champion.remove("_rev");
   return champion.getJSONObject();
 }