-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to support latest APIs/supported regions. Fixed two broken te…
…sts and finished the Static Data APIs.
- Loading branch information
Showing
24 changed files
with
825 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ava/lol4j/protocol/resource/GroupDto.java → .../protocol/dto/lolstaticdata/GroupDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../lol4j/protocol/resource/ItemTreeDto.java → ...otocol/dto/lolstaticdata/ItemTreeDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/main/java/lol4j/protocol/dto/lolstaticdata/RealmDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package lol4j.protocol.dto.lolstaticdata; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Created by Aaron Corley on 3/17/14. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class RealmDto { | ||
@JsonProperty("cdn") | ||
private String cdnBaseUrl; | ||
@JsonProperty("css") | ||
private String cssVersion; | ||
@JsonProperty("dd") | ||
private String dragonMagicVersion; | ||
@JsonProperty("l") | ||
private String defaultLanguage; | ||
@JsonProperty("lg") | ||
private String legacyScriptMode; | ||
@JsonProperty("n") | ||
private Map<String, String> dataTypeVersionMap = new HashMap<>(); | ||
@JsonProperty("profileiconmax") | ||
private int profileIconMax; | ||
private String store; | ||
@JsonProperty("v") | ||
private String version; | ||
|
||
public Map<String, String> getDataTypeVersionMap() { | ||
return dataTypeVersionMap; | ||
} | ||
|
||
public String getCdnBaseUrl() { | ||
|
||
return cdnBaseUrl; | ||
} | ||
|
||
public void setCdnBaseUrl(String cdnBaseUrl) { | ||
this.cdnBaseUrl = cdnBaseUrl; | ||
} | ||
|
||
public String getCssVersion() { | ||
return cssVersion; | ||
} | ||
|
||
public void setCssVersion(String cssVersion) { | ||
this.cssVersion = cssVersion; | ||
} | ||
|
||
public String getDragonMagicVersion() { | ||
return dragonMagicVersion; | ||
} | ||
|
||
public void setDragonMagicVersion(String dragonMagicVersion) { | ||
this.dragonMagicVersion = dragonMagicVersion; | ||
} | ||
|
||
public String getDefaultLanguage() { | ||
return defaultLanguage; | ||
} | ||
|
||
public void setDefaultLanguage(String defaultLanguage) { | ||
this.defaultLanguage = defaultLanguage; | ||
} | ||
|
||
public String getLegacyScriptMode() { | ||
return legacyScriptMode; | ||
} | ||
|
||
public void setLegacyScriptMode(String legacyScriptMode) { | ||
this.legacyScriptMode = legacyScriptMode; | ||
} | ||
|
||
public int getProfileIconMax() { | ||
return profileIconMax; | ||
} | ||
|
||
public void setProfileIconMax(int profileIconMax) { | ||
this.profileIconMax = profileIconMax; | ||
} | ||
|
||
public String getStore() { | ||
return store; | ||
} | ||
|
||
public void setStore(String store) { | ||
this.store = store; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
src/main/java/lol4j/protocol/dto/lolstaticdata/RuneListDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package lol4j.protocol.dto.lolstaticdata; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Created by Aaron Corley on 3/18/14. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class RuneListDto { | ||
private BasicDataDto basic; | ||
private Map<String, BasicDataDto> data = new HashMap<>(); | ||
private String type; | ||
private String version; | ||
|
||
public BasicDataDto getBasic() { | ||
return basic; | ||
} | ||
|
||
public void setBasic(BasicDataDto basic) { | ||
this.basic = basic; | ||
} | ||
|
||
public Map<String, BasicDataDto> getData() { | ||
return data; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.