From 6a7434e2681436ea3d045f0c67f164c8eaa4150c Mon Sep 17 00:00:00 2001 From: Piotr Brzozowski Date: Wed, 26 Feb 2020 19:38:05 +0100 Subject: [PATCH] Add ingame api, add getter for client path and update generated models to 10.4 --- README.md | 13 +- pom.xml | 2 +- .../com/stirante/lolclient/ClientApi.java | 61 +++- .../com/stirante/utils/ClassGenerator.java | 121 +++++--- src/main/java/examples/IngameApiExample.java | 47 +++ src/main/java/examples/pojo/Abilities.java | 59 ++++ src/main/java/examples/pojo/Ability.java | 59 ++++ src/main/java/examples/pojo/ActivePlayer.java | 69 +++++ .../java/examples/pojo/ChampionStats.java | 289 ++++++++++++++++++ src/main/java/examples/pojo/Event.java | 67 ++++ src/main/java/examples/pojo/EventName.java | 38 +++ src/main/java/examples/pojo/Events.java | 20 ++ src/main/java/examples/pojo/FullRunes.java | 60 ++++ src/main/java/examples/pojo/GameData.java | 100 ++++++ src/main/java/examples/pojo/Item.java | 99 ++++++ src/main/java/examples/pojo/Passive.java | 50 +++ src/main/java/examples/pojo/Player.java | 152 +++++++++ src/main/java/examples/pojo/Rune.java | 49 +++ src/main/java/examples/pojo/RuneTree.java | 49 +++ src/main/java/examples/pojo/Runes.java | 39 +++ src/main/java/examples/pojo/Scores.java | 59 ++++ src/main/java/examples/pojo/StatRune.java | 29 ++ .../java/examples/pojo/SummonerSpell.java | 39 +++ .../java/examples/pojo/SummonerSpells.java | 29 ++ src/main/java/generated/Bracket.java | 3 - src/main/java/generated/BracketMatch.java | 3 + .../generated/CrashReportingEnvironment.java | 9 + .../LolCatalogCatalogPluginItem.java | 1 + .../LolChampSelectChampSelectAction.java | 1 + ...pSelectChampSelectPinDropNotification.java | 10 + ...ChampSelectChampSelectPinDropSummoner.java | 12 + .../LolChampSelectChampSelectSession.java | 2 + ...LolChampSelectLegacyChampSelectAction.java | 2 + ...olChampSelectLegacyChampSelectSession.java | 3 + ...lChampSelectLegacyQueueGameTypeConfig.java | 1 + .../LolChampSelectSfxNotification.java | 9 + .../generated/LolChatLcuSocialConfig.java | 1 + .../java/generated/LolChatSummonerStatus.java | 7 + src/main/java/generated/LolClashBracket.java | 3 - .../java/generated/LolClashClashConfig.java | 2 - .../java/generated/LolClashClashState.java | 4 - .../generated/LolClashClashVisibility.java | 2 - .../generated/LolClashEntitlementsToken.java | 11 - .../generated/LolClashRosterNotifyReason.java | 10 +- .../LolContentTargetingPlatformConfig.java | 3 +- ...olContentTargetingTargetingAttributes.java | 7 + .../LolCosmeticsCosmeticsTFTMapSkin.java | 1 + .../LolCosmeticsGameDataTFTMapSkin.java | 1 + .../LolGameflowCrashReportingSettings.java | 8 + .../LolLobbyTeamBuilderChampSelectAction.java | 2 + ...LolLobbyTeamBuilderChampSelectSession.java | 2 + .../LolLoginCrashReportingEnvironment.java | 9 + ...LolMatchHistoryRecentlyPlayedSummoner.java | 1 + .../generated/LolMatchHistorySummoner.java | 8 + .../LolMatchHistorySummonerIdAndName.java | 7 - .../generated/LolMissionsMissionAsset.java | 8 + .../LolMissionsTftPaidBattlepass.java | 13 + .../LolMissionsTftPaidBattlepassInfo.java | 11 + ...LolMissionsTftPaidBattlepassMilestone.java | 23 ++ .../LolPatchChunkingPatcherEnvironment.java | 3 - .../LolPatchPatcherExecutableSettings.java | 7 - .../LolPatchPatcherSelfUpdateSettings.java | 1 - ...ayerBehaviorPlayerBehavior_LoginError.java | 9 - ...erBehaviorPlayerBehavior_LoginSession.java | 10 - ...aviorPlayerBehavior_LoginSessionState.java | 16 - .../LolPremadeVoiceConfigReadinessEnum.java | 14 + .../LolPremadeVoiceConfigStatus.java | 7 + .../generated/LolPremadeVoiceConfigType.java | 12 + ...lPremadeVoiceDeviceResourceRiotClient.java | 11 + .../LolRankedLeagueDivisionInfo.java | 2 +- .../java/generated/LolRankedRankedStats.java | 1 + .../java/generated/LolRankedRewardsInfo.java | 1 + .../java/generated/LolRankedSplitReward.java | 1 + .../LolRevivalsAccountSettingsData.java | 7 - .../LolRevivalsAccountSettingsPayload.java | 7 - .../LolRevivalsChallengesProgress.java | 7 - .../LolRevivalsDailyPlayProgress.java | 8 - .../generated/LolRevivalsEligibility.java | 8 - .../LolRevivalsMatchHistoryGame.java | 7 - .../LolRevivalsMatchHistoryGameList.java | 9 - .../LolRevivalsMatchHistoryList.java | 7 - .../java/generated/LolRevivalsMission.java | 14 - .../generated/LolRevivalsMissionDisplay.java | 9 - .../generated/LolRevivalsMissionSeries.java | 9 - .../LolRevivalsMissionSeriesOptIn.java | 8 - .../java/generated/LolRevivalsObjective.java | 7 - .../java/generated/LolRevivalsProgress.java | 9 - .../java/generated/LolRevivalsSummoner.java | 7 - .../generated/LolStatstonesStatstone.java | 2 +- ...LolStatstonesStatstoneFeaturedRequest.java | 10 + ...LolStatstonesStatstoneMasteryVignette.java | 4 + .../LolStatstonesStatstoneProgress.java | 3 + .../java/generated/LolSummonerStatus.java | 7 + .../LolSummonerSummonerCreateRequest.java | 7 + .../LolTrophiesClashV2TrophyRewardSpec.java | 3 + .../java/generated/LolTrophiesLoadout.java | 10 + .../generated/LolTrophiesLoadoutItem.java | 9 + .../LolTrophiesTrophyProfileData.java | 3 + ...TokenCardLootTokenBankCardGdsResource.java | 1 + ...lWorldsTokenCardTokenUpsellLockedType.java | 6 +- .../PatcherChunkingPatcherEnvironment.java | 7 +- .../generated/PatcherComponentResource.java | 19 -- .../PatcherComponentResourceHistory.java | 12 - .../PatcherComponentResourceType.java | 12 - .../java/generated/PatcherHeaderEntry.java | 8 - .../PatcherInjectedPatcherError.java | 16 - .../generated/PatcherProductResource.java | 4 - src/main/java/generated/PluginResource.java | 1 - src/main/java/generated/TournamentDTO.java | 1 + src/main/java/generated/UriMap.java | 13 +- .../java/generated/live/AbilityResource.java | 38 +++ .../live/BindingAsyncCancelEvent.java | 7 + .../live/BindingAsyncFailureEvent.java | 8 + .../generated/live/BindingAsyncState.java | 20 ++ .../generated/live/BindingCallbackEvent.java | 10 + .../generated/live/BindingFullApiHelp.java | 11 + .../live/BindingFullArgumentHelp.java | 10 + .../live/BindingFullEnumValueHelp.java | 9 + .../generated/live/BindingFullEventHelp.java | 13 + .../generated/live/BindingFullFieldHelp.java | 11 + .../live/BindingFullFunctionHelp.java | 17 ++ .../generated/live/BindingFullTypeHelp.java | 15 + .../live/BindingFullTypeIdentifier.java | 8 + .../live/BindingGenericAsyncEvent.java | 8 + .../generated/live/BindingGenericEvent.java | 7 + .../generated/live/BindingHelpFormat.java | 12 + src/main/java/generated/live/Color.java | 10 + .../generated/live/RemotingHelpFormat.java | 16 + .../generated/live/RemotingPrivilege.java | 16 + .../live/RemotingSerializedFormat.java | 14 + src/main/java/generated/live/TeamID.java | 18 ++ src/main/java/generated/live/Vector2f.java | 8 + src/main/java/generated/live/Vector3f.java | 9 + src/main/java/generated/live/Vector4f.java | 10 + 134 files changed, 2125 insertions(+), 355 deletions(-) create mode 100644 src/main/java/examples/IngameApiExample.java create mode 100644 src/main/java/examples/pojo/Abilities.java create mode 100644 src/main/java/examples/pojo/Ability.java create mode 100644 src/main/java/examples/pojo/ActivePlayer.java create mode 100644 src/main/java/examples/pojo/ChampionStats.java create mode 100644 src/main/java/examples/pojo/Event.java create mode 100644 src/main/java/examples/pojo/EventName.java create mode 100644 src/main/java/examples/pojo/Events.java create mode 100644 src/main/java/examples/pojo/FullRunes.java create mode 100644 src/main/java/examples/pojo/GameData.java create mode 100644 src/main/java/examples/pojo/Item.java create mode 100644 src/main/java/examples/pojo/Passive.java create mode 100644 src/main/java/examples/pojo/Player.java create mode 100644 src/main/java/examples/pojo/Rune.java create mode 100644 src/main/java/examples/pojo/RuneTree.java create mode 100644 src/main/java/examples/pojo/Runes.java create mode 100644 src/main/java/examples/pojo/Scores.java create mode 100644 src/main/java/examples/pojo/StatRune.java create mode 100644 src/main/java/examples/pojo/SummonerSpell.java create mode 100644 src/main/java/examples/pojo/SummonerSpells.java create mode 100644 src/main/java/generated/CrashReportingEnvironment.java create mode 100644 src/main/java/generated/LolChampSelectChampSelectPinDropNotification.java create mode 100644 src/main/java/generated/LolChampSelectChampSelectPinDropSummoner.java create mode 100644 src/main/java/generated/LolChampSelectSfxNotification.java create mode 100644 src/main/java/generated/LolChatSummonerStatus.java delete mode 100644 src/main/java/generated/LolClashEntitlementsToken.java create mode 100644 src/main/java/generated/LolContentTargetingTargetingAttributes.java create mode 100644 src/main/java/generated/LolGameflowCrashReportingSettings.java create mode 100644 src/main/java/generated/LolLoginCrashReportingEnvironment.java create mode 100644 src/main/java/generated/LolMatchHistorySummoner.java delete mode 100644 src/main/java/generated/LolMatchHistorySummonerIdAndName.java create mode 100644 src/main/java/generated/LolMissionsMissionAsset.java create mode 100644 src/main/java/generated/LolMissionsTftPaidBattlepass.java create mode 100644 src/main/java/generated/LolMissionsTftPaidBattlepassInfo.java create mode 100644 src/main/java/generated/LolMissionsTftPaidBattlepassMilestone.java delete mode 100644 src/main/java/generated/LolPatchPatcherExecutableSettings.java delete mode 100644 src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginError.java delete mode 100644 src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSession.java delete mode 100644 src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSessionState.java create mode 100644 src/main/java/generated/LolPremadeVoiceConfigReadinessEnum.java create mode 100644 src/main/java/generated/LolPremadeVoiceConfigStatus.java create mode 100644 src/main/java/generated/LolPremadeVoiceConfigType.java create mode 100644 src/main/java/generated/LolPremadeVoiceDeviceResourceRiotClient.java delete mode 100644 src/main/java/generated/LolRevivalsAccountSettingsData.java delete mode 100644 src/main/java/generated/LolRevivalsAccountSettingsPayload.java delete mode 100644 src/main/java/generated/LolRevivalsChallengesProgress.java delete mode 100644 src/main/java/generated/LolRevivalsDailyPlayProgress.java delete mode 100644 src/main/java/generated/LolRevivalsEligibility.java delete mode 100644 src/main/java/generated/LolRevivalsMatchHistoryGame.java delete mode 100644 src/main/java/generated/LolRevivalsMatchHistoryGameList.java delete mode 100644 src/main/java/generated/LolRevivalsMatchHistoryList.java delete mode 100644 src/main/java/generated/LolRevivalsMission.java delete mode 100644 src/main/java/generated/LolRevivalsMissionDisplay.java delete mode 100644 src/main/java/generated/LolRevivalsMissionSeries.java delete mode 100644 src/main/java/generated/LolRevivalsMissionSeriesOptIn.java delete mode 100644 src/main/java/generated/LolRevivalsObjective.java delete mode 100644 src/main/java/generated/LolRevivalsProgress.java delete mode 100644 src/main/java/generated/LolRevivalsSummoner.java create mode 100644 src/main/java/generated/LolStatstonesStatstoneFeaturedRequest.java create mode 100644 src/main/java/generated/LolSummonerStatus.java create mode 100644 src/main/java/generated/LolSummonerSummonerCreateRequest.java create mode 100644 src/main/java/generated/LolTrophiesLoadout.java create mode 100644 src/main/java/generated/LolTrophiesLoadoutItem.java delete mode 100644 src/main/java/generated/PatcherComponentResource.java delete mode 100644 src/main/java/generated/PatcherComponentResourceHistory.java delete mode 100644 src/main/java/generated/PatcherComponentResourceType.java delete mode 100644 src/main/java/generated/PatcherHeaderEntry.java delete mode 100644 src/main/java/generated/PatcherInjectedPatcherError.java create mode 100644 src/main/java/generated/live/AbilityResource.java create mode 100644 src/main/java/generated/live/BindingAsyncCancelEvent.java create mode 100644 src/main/java/generated/live/BindingAsyncFailureEvent.java create mode 100644 src/main/java/generated/live/BindingAsyncState.java create mode 100644 src/main/java/generated/live/BindingCallbackEvent.java create mode 100644 src/main/java/generated/live/BindingFullApiHelp.java create mode 100644 src/main/java/generated/live/BindingFullArgumentHelp.java create mode 100644 src/main/java/generated/live/BindingFullEnumValueHelp.java create mode 100644 src/main/java/generated/live/BindingFullEventHelp.java create mode 100644 src/main/java/generated/live/BindingFullFieldHelp.java create mode 100644 src/main/java/generated/live/BindingFullFunctionHelp.java create mode 100644 src/main/java/generated/live/BindingFullTypeHelp.java create mode 100644 src/main/java/generated/live/BindingFullTypeIdentifier.java create mode 100644 src/main/java/generated/live/BindingGenericAsyncEvent.java create mode 100644 src/main/java/generated/live/BindingGenericEvent.java create mode 100644 src/main/java/generated/live/BindingHelpFormat.java create mode 100644 src/main/java/generated/live/Color.java create mode 100644 src/main/java/generated/live/RemotingHelpFormat.java create mode 100644 src/main/java/generated/live/RemotingPrivilege.java create mode 100644 src/main/java/generated/live/RemotingSerializedFormat.java create mode 100644 src/main/java/generated/live/TeamID.java create mode 100644 src/main/java/generated/live/Vector2f.java create mode 100644 src/main/java/generated/live/Vector3f.java create mode 100644 src/main/java/generated/live/Vector4f.java diff --git a/README.md b/README.md index 98026806..d5b21215 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Add the project as a dependency: ```java dependencies { - compile 'com.github.stirante:lol-client-java-api:1.1.7' + compile 'com.github.stirante:lol-client-java-api:1.2.0' } ``` @@ -56,7 +56,7 @@ Add the project as a dependency: com.github.stirante lol-client-java-api - 1.1.7 + 1.2.0 ``` @@ -252,6 +252,15 @@ public class WebSocketExample { } ``` +## Live game API + +Since version 1.2.0, this api allows for requesting live game data. The example is in `src/main/java/examples/IngameApiExample.java`. +To check how it's working, run this example while in game. + +Generated documentation can be found [here](https://files.stirante.com/ingame-api.html) (not generated by me). + +Generated models for live game API are in `generated.live` package (It's not very useful right now, because the schema in documentation is lacking. I hope it will be added in the future). + ## Contributing All contributions are appreciated. If you would like to contribute to this project, please send a pull request. diff --git a/pom.xml b/pom.xml index 635f681c..8af4f82f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.stirante lol-client-java-api - 1.1.8 + 1.2.0 1.8 diff --git a/src/main/java/com/stirante/lolclient/ClientApi.java b/src/main/java/com/stirante/lolclient/ClientApi.java index ab52e8f3..525a0eac 100644 --- a/src/main/java/com/stirante/lolclient/ClientApi.java +++ b/src/main/java/com/stirante/lolclient/ClientApi.java @@ -2,6 +2,7 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; +import com.google.gson.JsonObject; import generated.*; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.entity.EntityBuilder; @@ -83,11 +84,13 @@ public class ClientApi { "lol-simple-dialog-messages", "lol-spectator", "lol-suggested-players", - "lol-trophies" + "lol-trophies", + "liveclientdata" ); private static final Pattern INSTALL_DIR = Pattern.compile(".+\"--install-directory=([()a-zA-Z_0-9- :.\\\\/]+)\".+"); private static final Gson GSON = new GsonBuilder().create(); + private static final int LIVE_PORT = 2999; /** * Enabled 'legacy' mode */ @@ -227,6 +230,13 @@ public ClientApi(String clientPath, int connectTimeout, int readTimeout) { start(); } + /** + * @return a {@code java.lang.String} that points to the League of Legends client directory + */ + public String getClientPath() { + return clientPath; + } + /** * Adds client connection listener */ @@ -516,20 +526,33 @@ public boolean isAuthorized() throws IOException { } public String getSwaggerJson() throws IOException { - return dumpHttpRequest(getConnection("/swagger/v2/swagger.json", new HttpGet())); + return dumpHttpRequest(getConnection("/swagger/v2/swagger.json", port, new HttpGet())); } public String getOpenapiJson() throws IOException { - return dumpHttpRequest(getConnection("/swagger/v3/openapi.json", new HttpGet())); + return dumpHttpRequest(getConnection("/swagger/v3/openapi.json", port, new HttpGet())); + } + + public String getLiveSwaggerJson() throws IOException { + return dumpHttpRequest(getConnection("/swagger/v2/swagger.json", LIVE_PORT, new HttpGet())); + } + + public String getLiveOpenapiJson() throws IOException { + return dumpHttpRequest(getConnection("/swagger/v3/openapi.json", LIVE_PORT, new HttpGet())); } public T executeGet(String path, Class clz) throws IOException { - HttpGet conn = getConnection(path, new HttpGet()); + HttpGet conn = getConnection(path, port, new HttpGet()); + return getResponseObject(clz, conn); + } + + public T executeLiveGet(String path, Class clz) throws IOException { + HttpGet conn = getConnection(path, LIVE_PORT, new HttpGet()); return getResponseObject(clz, conn); } public InputStream executeBinaryGet(String path) throws IOException { - HttpGet conn = getConnection(path, new HttpGet()); + HttpGet conn = getConnection(path, port, new HttpGet()); CloseableHttpResponse response = client.execute(conn); boolean b = response.getStatusLine().getStatusCode() == 200; if (!b) { @@ -540,45 +563,45 @@ public InputStream executeBinaryGet(String path) throws IOException { } public T executeGet(String path, Class clz, String... queryParams) throws IOException { - HttpGet conn = getConnection(path, new HttpGet(), queryParams); + HttpGet conn = getConnection(path, port, new HttpGet(), queryParams); return getResponseObject(clz, conn); } public boolean executePut(String path, Object jsonObject) throws IOException { - HttpPut conn = getConnection(path, new HttpPut()); + HttpPut conn = getConnection(path, port, new HttpPut()); addJsonBody(jsonObject, conn); return isOk(conn); } public T executePost(String path, Object jsonObject, Class clz) throws IOException { - HttpPost conn = getConnection(path, new HttpPost()); + HttpPost conn = getConnection(path, port, new HttpPost()); addJsonBody(jsonObject, conn); return getResponseObject(clz, conn); } public T executePost(String path, Class clz) throws IOException { - HttpPost conn = getConnection(path, new HttpPost()); + HttpPost conn = getConnection(path, port, new HttpPost()); return getResponseObject(clz, conn); } public boolean executePost(String path, Object jsonObject) throws IOException { - HttpPost conn = getConnection(path, new HttpPost()); + HttpPost conn = getConnection(path, port, new HttpPost()); addJsonBody(jsonObject, conn); return isOk(conn); } public boolean executePatch(String path, Object jsonObject) throws IOException { - HttpPatch conn = getConnection(path, new HttpPatch()); + HttpPatch conn = getConnection(path, port, new HttpPatch()); addJsonBody(jsonObject, conn); return isOk(conn); } public boolean executePost(String path) throws IOException { - return isOk(getConnection(path, new HttpPost())); + return isOk(getConnection(path, port, new HttpPost())); } public boolean executeDelete(String path) throws IOException { - return isOk(getConnection(path, new HttpDelete())); + return isOk(getConnection(path, port, new HttpDelete())); } private void addJsonBody(Object jsonObject, T method) { @@ -619,7 +642,7 @@ private boolean isOk(T method) throws IOException { * @param method Base request * @param queryParams Pairs of get parameters. Must be divisible by 2. */ - private T getConnection(String endpoint, T method, String... queryParams) { + private T getConnection(String endpoint, int port, T method, String... queryParams) { if (!connected.get()) { throw new IllegalStateException("API not connected!"); } @@ -641,7 +664,7 @@ private T getConnection(String endpoint, T method, S sb.append(queryParams[i]).append("=").append(queryParams[i + 1]); } URI uri = new URI(sb.toString()); - if (!disableEndpointWarnings.get()) { + if (!disableEndpointWarnings.get() && uri.getPath().substring(1).indexOf('/') != -1) { String path = uri.getPath().substring(1, uri.getPath().substring(1).indexOf('/') + 1); if (!ALLOWED_ENDPOINTS.contains(path)) { System.err.println( @@ -669,6 +692,14 @@ public LolRsoAuthAuthorization getAuth() throws IOException { return executeGet("/rso-auth/v1/authorization", LolRsoAuthAuthorization.class); } + /** + * @deprecated Will be removed someday. It should be moved and organized. + */ + @Deprecated + public JsonObject getLiveGameData() throws IOException { + return executeGet("/liveclientdata/allgamedata", JsonObject.class); + } + /** * @deprecated Will be removed someday. It should be moved and organized. */ diff --git a/src/main/java/com/stirante/utils/ClassGenerator.java b/src/main/java/com/stirante/utils/ClassGenerator.java index 9fc4be7c..50cf32e9 100644 --- a/src/main/java/com/stirante/utils/ClassGenerator.java +++ b/src/main/java/com/stirante/utils/ClassGenerator.java @@ -25,17 +25,74 @@ public class ClassGenerator { */ private static final List RESERVED = Arrays.asList("implements", "int", "long", "short", "extends", "super", "char", "byte", "private", "protected", "public", "class", "default"); - private static final String PATH = "src/main/java/generated/"; + private static final String PATH = "src/main/java/"; + + private static void deleteFolder(File folder) { + File[] files = folder.listFiles(); + if (files != null) { + for (File f : files) { + if (f.isDirectory()) { + deleteFolder(f); + } + else { + f.delete(); + } + } + } + folder.delete(); + } public static void main(String[] args) throws IOException { ClientApi.setLegacyMode(true); ClientApi api = new ClientApi(); String openapiJson = api.getOpenapiJson(); - File f = new File(PATH); - // create folder just in case - f.mkdir(); + String liveOpenapiJson = api.getLiveOpenapiJson(); + File f = new File(PATH + "generated/"); // delete all previously generated classes - Arrays.stream(Objects.requireNonNull(f.listFiles())).forEach(File::delete); + deleteFolder(f); + // create folders + f.mkdir(); + f = new File(f, "live"); + f.mkdir(); + + parseOpenApi("generated.live", liveOpenapiJson); + SwaggerParseResult swagger = parseOpenApi("generated", openapiJson); + // generate uri map, so we can match class by it's URI (for receiving live events from client) + StringBuilder b = new StringBuilder(); + b + .append("package generated;") + .append("\n") + .append("\nimport java.util.HashMap;") + .append("\n") + .append("\npublic class UriMap {") + .append("\n") + .append("\n\tpublic static final HashMap toClass = new HashMap<>();") + .append("\n") + .append("\n\tstatic {"); + for (String path : swagger.getOpenAPI().getPaths().keySet()) { + PathItem item = swagger.getOpenAPI().getPaths().get(path); + if (item.getGet() != null && item.getGet().getResponses().containsKey("200") && + item.getGet().getResponses().get("200").getContent().containsKey("application/json")) { + Schema schema = + item.getGet().getResponses().get("200").getContent().get("application/json").getSchema(); + if (schema == null) { + continue; + } + b.append("\n\t\ttoClass.put(\"") + .append(toRegex(path)) + .append("\", ") + .append(getType(schema, false)) + .append(".class);"); + } + } + b + .append("\n\t}") + .append("\n") + .append("\n}"); + saveFile("generated", "UriMap", b.toString()); + } + + private static SwaggerParseResult parseOpenApi(String pck, String openapiJson) throws IOException { SwaggerParseResult swagger = new OpenAPIParser().readContents(openapiJson, new ArrayList<>(), new ParseOptions()); Map schemas = swagger.getOpenAPI().getComponents().getSchemas(); @@ -46,7 +103,7 @@ public static void main(String[] args) throws IOException { if (schema.getType().equalsIgnoreCase("object")) { StringBuilder b = new StringBuilder(); b - .append("package generated;") + .append("package ").append(pck).append(";") .append("%imports%") .append("\n") .append("\npublic class ").append(s).append(" {") @@ -81,13 +138,13 @@ public static void main(String[] args) throws IOException { if (importSerializedName) { imports.append("\nimport com.google.gson.annotations.SerializedName;"); } - saveFile(s, b.toString().replace("%imports%", imports)); + saveFile(pck, s, b.toString().replace("%imports%", imports)); } else if (schema.getType().equalsIgnoreCase("string") && schema.getEnum() != null && !schema.getEnum().isEmpty()) { StringBuilder b = new StringBuilder(); b - .append("package generated;") + .append("package ").append(pck).append(";") .append("\n") .append("\nimport com.google.gson.annotations.SerializedName;") .append("\n") @@ -108,50 +165,19 @@ else if (schema.getType().equalsIgnoreCase("string") && schema.getEnum() != null .append("\n") .append("\n") .append("}"); - saveFile(s, b.toString()); - } - } - // generate uri map, so we can match class by it's URI (for receiving live events from client) - StringBuilder b = new StringBuilder(); - b - .append("package generated;") - .append("\n") - .append("\nimport java.util.HashMap;") - .append("\n") - .append("\npublic class UriMap {") - .append("\n") - .append("\n\tpublic static final HashMap toClass = new HashMap<>();") - .append("\n") - .append("\n\tstatic {"); - for (String path : swagger.getOpenAPI().getPaths().keySet()) { - PathItem item = swagger.getOpenAPI().getPaths().get(path); - if (item.getGet() != null && item.getGet().getResponses().containsKey("200") && - item.getGet().getResponses().get("200").getContent().containsKey("application/json")) { - Schema schema = - item.getGet().getResponses().get("200").getContent().get("application/json").getSchema(); - if (schema == null) { - continue; - } - b.append("\n\t\ttoClass.put(\"") - .append(toRegex(path)) - .append("\", ") - .append(getType(schema, false)) - .append(".class);"); + saveFile(pck, s, b.toString()); } } - b - .append("\n\t}") - .append("\n") - .append("\n}"); - saveFile("UriMap", b.toString()); + return swagger; } /** * Turns URI with parameters into regex * Example: * '/voice-chat/v2/sessions/{sessionId}/participants/{participantId}' - * is turned into + * is turned into * '\/voice-chat\/v2\/sessions\/[^/]+\/participants\/[^/]+' + * * @param str path with parameters * @return regex string */ @@ -162,11 +188,12 @@ private static String toRegex(String str) { /** * Saves class to file + * * @param s class name * @param b class contents */ - private static void saveFile(String s, String b) throws IOException { - File file = new File(PATH + s + ".java"); + private static void saveFile(String pck, String s, String b) throws IOException { + File file = new File(PATH + pck.replaceAll("\\.", "/") + "/" + s + ".java"); FileWriter fw = new FileWriter(file); fw.write(b); fw.flush(); @@ -176,6 +203,7 @@ private static void saveFile(String s, String b) throws IOException { /** * Returns java type name based on type from scheme + * * @param schema schema * @param asList should type be list instead of an array * @return java type or empty string if schema type is null @@ -220,6 +248,7 @@ else if (schema.getType().equalsIgnoreCase("number")) { /** * Is name valid for java. Probably can be improved + * * @param s name * @return true if name is valid */ @@ -235,6 +264,7 @@ private static boolean isValidName(String s) { /** * Turns name into valid java name + * * @param s name * @return valid java name */ @@ -248,6 +278,7 @@ private static String toValidName(String s) { /** * Turns name into more java-like enum name. Could be probably improved. * Example: 'enum-name' into 'ENUM_NAME' + * * @param s name * @return java enum name */ diff --git a/src/main/java/examples/IngameApiExample.java b/src/main/java/examples/IngameApiExample.java new file mode 100644 index 00000000..006b8d45 --- /dev/null +++ b/src/main/java/examples/IngameApiExample.java @@ -0,0 +1,47 @@ +package examples; + +import com.google.gson.GsonBuilder; +import com.stirante.lolclient.ClientApi; +import com.stirante.lolclient.ClientConnectionListener; +import examples.pojo.GameData; +import generated.LolGameflowGameflowPhase; + +public class IngameApiExample { + + /** + * Simple example, which shows how to access API directly + */ + public static void main(String[] args) { + //Initialize API + ClientApi api = new ClientApi(); + //Add listener, which will notify us about client connection available + api.addClientConnectionListener(new ClientConnectionListener() { + @Override + public void onClientConnected() { + try { + LolGameflowGameflowPhase phase = + api.executeGet("/lol-gameflow/v1/gameflow-phase", LolGameflowGameflowPhase.class); + if (phase != LolGameflowGameflowPhase.INPROGRESS) { + System.out.println("You're not in game! Run this example while the game is in progress."); + api.stop(); + return; + } + //Get all data about current game + //Almost all those models are actually not generated, because current API documentation + //lacks schema for an automated model generation + GameData data = api.executeLiveGet("/liveclientdata/allgamedata", GameData.class); + //Print data + System.out.println(new GsonBuilder().setPrettyPrinting().create().toJson(data)); + api.stop(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + @Override + public void onClientDisconnected() { + + } + }); + } +} diff --git a/src/main/java/examples/pojo/Abilities.java b/src/main/java/examples/pojo/Abilities.java new file mode 100644 index 00000000..4d04d626 --- /dev/null +++ b/src/main/java/examples/pojo/Abilities.java @@ -0,0 +1,59 @@ + +package examples.pojo; + +import com.google.gson.annotations.SerializedName; + +public class Abilities { + + @SerializedName("E") + private Ability e; + @SerializedName("Passive") + private Passive passive; + @SerializedName("Q") + private Ability q; + @SerializedName("R") + private Ability r; + @SerializedName("W") + private Ability w; + + public Ability getE() { + return e; + } + + public void setE(Ability e) { + this.e = e; + } + + public Passive getPassive() { + return passive; + } + + public void setPassive(Passive passive) { + this.passive = passive; + } + + public Ability getQ() { + return q; + } + + public void setQ(Ability q) { + this.q = q; + } + + public Ability getR() { + return r; + } + + public void setR(Ability r) { + this.r = r; + } + + public Ability getW() { + return w; + } + + public void setW(Ability w) { + this.w = w; + } + +} diff --git a/src/main/java/examples/pojo/Ability.java b/src/main/java/examples/pojo/Ability.java new file mode 100644 index 00000000..9b10ebb0 --- /dev/null +++ b/src/main/java/examples/pojo/Ability.java @@ -0,0 +1,59 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class Ability { + + @Expose + private Long abilityLevel; + @Expose + private String displayName; + @Expose + private String id; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + + public Long getAbilityLevel() { + return abilityLevel; + } + + public void setAbilityLevel(Long abilityLevel) { + this.abilityLevel = abilityLevel; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + +} diff --git a/src/main/java/examples/pojo/ActivePlayer.java b/src/main/java/examples/pojo/ActivePlayer.java new file mode 100644 index 00000000..88ff07bf --- /dev/null +++ b/src/main/java/examples/pojo/ActivePlayer.java @@ -0,0 +1,69 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class ActivePlayer { + + @Expose + private Abilities abilities; + @Expose + private ChampionStats championStats; + @Expose + private Double currentGold; + @Expose + private FullRunes fullRunes; + @Expose + private Long level; + @Expose + private String summonerName; + + public Abilities getAbilities() { + return abilities; + } + + public void setAbilities(Abilities abilities) { + this.abilities = abilities; + } + + public ChampionStats getChampionStats() { + return championStats; + } + + public void setChampionStats(ChampionStats championStats) { + this.championStats = championStats; + } + + public Double getCurrentGold() { + return currentGold; + } + + public void setCurrentGold(Double currentGold) { + this.currentGold = currentGold; + } + + public FullRunes getFullRunes() { + return fullRunes; + } + + public void setFullRunes(FullRunes fullRunes) { + this.fullRunes = fullRunes; + } + + public Long getLevel() { + return level; + } + + public void setLevel(Long level) { + this.level = level; + } + + public String getSummonerName() { + return summonerName; + } + + public void setSummonerName(String summonerName) { + this.summonerName = summonerName; + } + +} diff --git a/src/main/java/examples/pojo/ChampionStats.java b/src/main/java/examples/pojo/ChampionStats.java new file mode 100644 index 00000000..d638f19e --- /dev/null +++ b/src/main/java/examples/pojo/ChampionStats.java @@ -0,0 +1,289 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class ChampionStats { + + @Expose + private Double abilityPower; + @Expose + private Double armor; + @Expose + private Double armorPenetrationFlat; + @Expose + private Double armorPenetrationPercent; + @Expose + private Double attackDamage; + @Expose + private Double attackRange; + @Expose + private Double attackSpeed; + @Expose + private Double bonusArmorPenetrationPercent; + @Expose + private Double bonusMagicPenetrationPercent; + @Expose + private Double cooldownReduction; + @Expose + private Double critChance; + @Expose + private Double critDamage; + @Expose + private Double currentHealth; + @Expose + private Double healthRegenRate; + @Expose + private Double lifeSteal; + @Expose + private Double magicLethality; + @Expose + private Double magicPenetrationFlat; + @Expose + private Double magicPenetrationPercent; + @Expose + private Double magicResist; + @Expose + private Double maxHealth; + @Expose + private Double moveSpeed; + @Expose + private Double physicalLethality; + @Expose + private Double resourceMax; + @Expose + private Double resourceRegenRate; + @Expose + private String resourceType; + @Expose + private Double resourceValue; + @Expose + private Double spellVamp; + @Expose + private Double tenacity; + + public Double getAbilityPower() { + return abilityPower; + } + + public void setAbilityPower(Double abilityPower) { + this.abilityPower = abilityPower; + } + + public Double getArmor() { + return armor; + } + + public void setArmor(Double armor) { + this.armor = armor; + } + + public Double getArmorPenetrationFlat() { + return armorPenetrationFlat; + } + + public void setArmorPenetrationFlat(Double armorPenetrationFlat) { + this.armorPenetrationFlat = armorPenetrationFlat; + } + + public Double getArmorPenetrationPercent() { + return armorPenetrationPercent; + } + + public void setArmorPenetrationPercent(Double armorPenetrationPercent) { + this.armorPenetrationPercent = armorPenetrationPercent; + } + + public Double getAttackDamage() { + return attackDamage; + } + + public void setAttackDamage(Double attackDamage) { + this.attackDamage = attackDamage; + } + + public Double getAttackRange() { + return attackRange; + } + + public void setAttackRange(Double attackRange) { + this.attackRange = attackRange; + } + + public Double getAttackSpeed() { + return attackSpeed; + } + + public void setAttackSpeed(Double attackSpeed) { + this.attackSpeed = attackSpeed; + } + + public Double getBonusArmorPenetrationPercent() { + return bonusArmorPenetrationPercent; + } + + public void setBonusArmorPenetrationPercent(Double bonusArmorPenetrationPercent) { + this.bonusArmorPenetrationPercent = bonusArmorPenetrationPercent; + } + + public Double getBonusMagicPenetrationPercent() { + return bonusMagicPenetrationPercent; + } + + public void setBonusMagicPenetrationPercent(Double bonusMagicPenetrationPercent) { + this.bonusMagicPenetrationPercent = bonusMagicPenetrationPercent; + } + + public Double getCooldownReduction() { + return cooldownReduction; + } + + public void setCooldownReduction(Double cooldownReduction) { + this.cooldownReduction = cooldownReduction; + } + + public Double getCritChance() { + return critChance; + } + + public void setCritChance(Double critChance) { + this.critChance = critChance; + } + + public Double getCritDamage() { + return critDamage; + } + + public void setCritDamage(Double critDamage) { + this.critDamage = critDamage; + } + + public Double getCurrentHealth() { + return currentHealth; + } + + public void setCurrentHealth(Double currentHealth) { + this.currentHealth = currentHealth; + } + + public Double getHealthRegenRate() { + return healthRegenRate; + } + + public void setHealthRegenRate(Double healthRegenRate) { + this.healthRegenRate = healthRegenRate; + } + + public Double getLifeSteal() { + return lifeSteal; + } + + public void setLifeSteal(Double lifeSteal) { + this.lifeSteal = lifeSteal; + } + + public Double getMagicLethality() { + return magicLethality; + } + + public void setMagicLethality(Double magicLethality) { + this.magicLethality = magicLethality; + } + + public Double getMagicPenetrationFlat() { + return magicPenetrationFlat; + } + + public void setMagicPenetrationFlat(Double magicPenetrationFlat) { + this.magicPenetrationFlat = magicPenetrationFlat; + } + + public Double getMagicPenetrationPercent() { + return magicPenetrationPercent; + } + + public void setMagicPenetrationPercent(Double magicPenetrationPercent) { + this.magicPenetrationPercent = magicPenetrationPercent; + } + + public Double getMagicResist() { + return magicResist; + } + + public void setMagicResist(Double magicResist) { + this.magicResist = magicResist; + } + + public Double getMaxHealth() { + return maxHealth; + } + + public void setMaxHealth(Double maxHealth) { + this.maxHealth = maxHealth; + } + + public Double getMoveSpeed() { + return moveSpeed; + } + + public void setMoveSpeed(Double moveSpeed) { + this.moveSpeed = moveSpeed; + } + + public Double getPhysicalLethality() { + return physicalLethality; + } + + public void setPhysicalLethality(Double physicalLethality) { + this.physicalLethality = physicalLethality; + } + + public Double getResourceMax() { + return resourceMax; + } + + public void setResourceMax(Double resourceMax) { + this.resourceMax = resourceMax; + } + + public Double getResourceRegenRate() { + return resourceRegenRate; + } + + public void setResourceRegenRate(Double resourceRegenRate) { + this.resourceRegenRate = resourceRegenRate; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Double getResourceValue() { + return resourceValue; + } + + public void setResourceValue(Double resourceValue) { + this.resourceValue = resourceValue; + } + + public Double getSpellVamp() { + return spellVamp; + } + + public void setSpellVamp(Double spellVamp) { + this.spellVamp = spellVamp; + } + + public Double getTenacity() { + return tenacity; + } + + public void setTenacity(Double tenacity) { + this.tenacity = tenacity; + } + +} diff --git a/src/main/java/examples/pojo/Event.java b/src/main/java/examples/pojo/Event.java new file mode 100644 index 00000000..50751b67 --- /dev/null +++ b/src/main/java/examples/pojo/Event.java @@ -0,0 +1,67 @@ + +package examples.pojo; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class Event { + + @SerializedName("EventID") + private Long eventID; + @SerializedName("EventName") + private EventName eventName; + @SerializedName("EventTime") + private Double eventTime; + @SerializedName("KillerName") + private String killerName; + @SerializedName("TurretKilled") + private String turretKilled; + @SerializedName("InhibKilled") + private String inhibKilled; + @SerializedName("VictimName") + private String victimName; + @SerializedName("DragonType") + private String dragonType; + @SerializedName("Acer") + private String acer; + @SerializedName("AcingTeam") + private String acingTeam; + @SerializedName("InhibRespawned") + private String inhibRespawned; + @SerializedName("InhibRespawningSoon") + private String inhibRespawningSoon; + @SerializedName("Recipient") + private String recipient; + @SerializedName("KillStreak") + private Long killStreak; + @SerializedName("Stolen") + private Boolean stolen; + @SerializedName("Assisters") + private List assisters; + + public Long getEventID() { + return eventID; + } + + public void setEventID(Long eventID) { + this.eventID = eventID; + } + + public EventName getEventName() { + return eventName; + } + + public void setEventName(EventName eventName) { + this.eventName = eventName; + } + + public Double getEventTime() { + return eventTime; + } + + public void setEventTime(Double eventTime) { + this.eventTime = eventTime; + } + +} diff --git a/src/main/java/examples/pojo/EventName.java b/src/main/java/examples/pojo/EventName.java new file mode 100644 index 00000000..5ea0ca01 --- /dev/null +++ b/src/main/java/examples/pojo/EventName.java @@ -0,0 +1,38 @@ +package examples.pojo; + +import com.google.gson.annotations.SerializedName; + +public enum EventName { + + @SerializedName("BaronKill") + BARON_KILLED, + @SerializedName("ChampionKill") + CHAMPION_KILL, + @SerializedName("DragonKill") + DRAGON_KILLED, + @SerializedName("FirstBlood") + FIRST_BLOOD, + @SerializedName("FirstBrick") + FIRST_TOWER, + @SerializedName("GameEnd") + GAME_END, + @SerializedName("GameStart") + GAME_START, + @SerializedName("HeraldKill") + HERALD_KILLED, + @SerializedName("InhibKilled") + INHIBITOR_KILLED, + @SerializedName("InhibRespawned") + INHIBITOR_RESPAWNED, + @SerializedName("InhibRespawningSoon") + INHIBITOR_RESPAWNING_SOON, + @SerializedName("MinionsSpawning") + MINIONS_SPAWNING, + @SerializedName("Multikill") + MULTIKILL, + @SerializedName("Ace") + TEAM_ACE, + @SerializedName("TurretKilled") + TOWER_KILLED, + +} \ No newline at end of file diff --git a/src/main/java/examples/pojo/Events.java b/src/main/java/examples/pojo/Events.java new file mode 100644 index 00000000..78076958 --- /dev/null +++ b/src/main/java/examples/pojo/Events.java @@ -0,0 +1,20 @@ + +package examples.pojo; + +import java.util.List; +import com.google.gson.annotations.SerializedName; + +public class Events { + + @SerializedName("Events") + private List events; + + public List getEvents() { + return events; + } + + public void setEvents(List events) { + this.events = events; + } + +} diff --git a/src/main/java/examples/pojo/FullRunes.java b/src/main/java/examples/pojo/FullRunes.java new file mode 100644 index 00000000..387c9ab7 --- /dev/null +++ b/src/main/java/examples/pojo/FullRunes.java @@ -0,0 +1,60 @@ + +package examples.pojo; + +import java.util.List; +import com.google.gson.annotations.Expose; + +public class FullRunes { + + @Expose + private List generalRunes; + @Expose + private Rune keystone; + @Expose + private RuneTree runeTree; + @Expose + private RuneTree secondaryRuneTree; + @Expose + private List statRunes; + + public List getGeneralRunes() { + return generalRunes; + } + + public void setGeneralRunes(List generalRunes) { + this.generalRunes = generalRunes; + } + + public Rune getKeystone() { + return keystone; + } + + public void setKeystone(Rune keystone) { + this.keystone = keystone; + } + + public RuneTree getRuneTree() { + return runeTree; + } + + public void setRuneTree(RuneTree runeTree) { + this.runeTree = runeTree; + } + + public RuneTree getSecondaryRuneTree() { + return secondaryRuneTree; + } + + public void setSecondaryRuneTree(RuneTree secondaryRuneTree) { + this.secondaryRuneTree = secondaryRuneTree; + } + + public List getStatRunes() { + return statRunes; + } + + public void setStatRunes(List statRunes) { + this.statRunes = statRunes; + } + +} diff --git a/src/main/java/examples/pojo/GameData.java b/src/main/java/examples/pojo/GameData.java new file mode 100644 index 00000000..671efad4 --- /dev/null +++ b/src/main/java/examples/pojo/GameData.java @@ -0,0 +1,100 @@ + +package examples.pojo; + +import java.util.List; +import com.google.gson.annotations.Expose; + +public class GameData { + + @Expose + private ActivePlayer activePlayer; + @Expose + private List players; + @Expose + private Events events; + @Expose + private GameData gameData; + @Expose + private String gameMode; + @Expose + private Double gameTime; + @Expose + private String mapName; + @Expose + private Long mapNumber; + @Expose + private String mapTerrain; + + public ActivePlayer getActivePlayer() { + return activePlayer; + } + + public void setActivePlayer(ActivePlayer activePlayer) { + this.activePlayer = activePlayer; + } + + public List getPlayers() { + return players; + } + + public void setPlayers(List players) { + this.players = players; + } + + public Events getEvents() { + return events; + } + + public void setEvents(Events events) { + this.events = events; + } + + public GameData getGameData() { + return gameData; + } + + public void setGameData(GameData gameData) { + this.gameData = gameData; + } + + public String getGameMode() { + return gameMode; + } + + public void setGameMode(String gameMode) { + this.gameMode = gameMode; + } + + public Double getGameTime() { + return gameTime; + } + + public void setGameTime(Double gameTime) { + this.gameTime = gameTime; + } + + public String getMapName() { + return mapName; + } + + public void setMapName(String mapName) { + this.mapName = mapName; + } + + public Long getMapNumber() { + return mapNumber; + } + + public void setMapNumber(Long mapNumber) { + this.mapNumber = mapNumber; + } + + public String getMapTerrain() { + return mapTerrain; + } + + public void setMapTerrain(String mapTerrain) { + this.mapTerrain = mapTerrain; + } + +} diff --git a/src/main/java/examples/pojo/Item.java b/src/main/java/examples/pojo/Item.java new file mode 100644 index 00000000..70c6640a --- /dev/null +++ b/src/main/java/examples/pojo/Item.java @@ -0,0 +1,99 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class Item { + + @Expose + private Boolean canUse; + @Expose + private Boolean consumable; + @Expose + private Long count; + @Expose + private String displayName; + @Expose + private Long itemID; + @Expose + private Long price; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + @Expose + private Long slot; + + public Boolean getCanUse() { + return canUse; + } + + public void setCanUse(Boolean canUse) { + this.canUse = canUse; + } + + public Boolean getConsumable() { + return consumable; + } + + public void setConsumable(Boolean consumable) { + this.consumable = consumable; + } + + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public Long getItemID() { + return itemID; + } + + public void setItemID(Long itemID) { + this.itemID = itemID; + } + + public Long getPrice() { + return price; + } + + public void setPrice(Long price) { + this.price = price; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + + public Long getSlot() { + return slot; + } + + public void setSlot(Long slot) { + this.slot = slot; + } + +} diff --git a/src/main/java/examples/pojo/Passive.java b/src/main/java/examples/pojo/Passive.java new file mode 100644 index 00000000..274a33bf --- /dev/null +++ b/src/main/java/examples/pojo/Passive.java @@ -0,0 +1,50 @@ + +package examples.pojo; + + +import com.google.gson.annotations.Expose; + +public class Passive { + + @Expose + private String displayName; + @Expose + private String id; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + +} diff --git a/src/main/java/examples/pojo/Player.java b/src/main/java/examples/pojo/Player.java new file mode 100644 index 00000000..0df3452d --- /dev/null +++ b/src/main/java/examples/pojo/Player.java @@ -0,0 +1,152 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; +import generated.live.TeamID; + +import java.util.List; + +public class Player { + + @Expose + private String championName; + @Expose + private Boolean isBot; + @Expose + private Boolean isDead; + @Expose + private List items; + @Expose + private Long level; + @Expose + private String position; + @Expose + private String rawChampionName; + @Expose + private Double respawnTimer; + @Expose + private Runes runes; + @Expose + private Scores scores; + @Expose + private Long skinID; + @Expose + private String summonerName; + @Expose + private SummonerSpells summonerSpells; + @Expose + private TeamID team; + + public String getChampionName() { + return championName; + } + + public void setChampionName(String championName) { + this.championName = championName; + } + + public Boolean getIsBot() { + return isBot; + } + + public void setIsBot(Boolean isBot) { + this.isBot = isBot; + } + + public Boolean getIsDead() { + return isDead; + } + + public void setIsDead(Boolean isDead) { + this.isDead = isDead; + } + + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public Long getLevel() { + return level; + } + + public void setLevel(Long level) { + this.level = level; + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position; + } + + public String getRawChampionName() { + return rawChampionName; + } + + public void setRawChampionName(String rawChampionName) { + this.rawChampionName = rawChampionName; + } + + public Double getRespawnTimer() { + return respawnTimer; + } + + public void setRespawnTimer(Double respawnTimer) { + this.respawnTimer = respawnTimer; + } + + public Runes getRunes() { + return runes; + } + + public void setRunes(Runes runes) { + this.runes = runes; + } + + public Scores getScores() { + return scores; + } + + public void setScores(Scores scores) { + this.scores = scores; + } + + public Long getSkinID() { + return skinID; + } + + public void setSkinID(Long skinID) { + this.skinID = skinID; + } + + public String getSummonerName() { + return summonerName; + } + + public void setSummonerName(String summonerName) { + this.summonerName = summonerName; + } + + public SummonerSpells getSummonerSpells() { + return summonerSpells; + } + + public void setSummonerSpells(SummonerSpells summonerSpells) { + this.summonerSpells = summonerSpells; + } + + public TeamID getTeam() { + return team; + } + + public void setTeam(TeamID team) { + this.team = team; + } + +} diff --git a/src/main/java/examples/pojo/Rune.java b/src/main/java/examples/pojo/Rune.java new file mode 100644 index 00000000..e7840641 --- /dev/null +++ b/src/main/java/examples/pojo/Rune.java @@ -0,0 +1,49 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class Rune { + + @Expose + private String displayName; + @Expose + private Long id; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + +} diff --git a/src/main/java/examples/pojo/RuneTree.java b/src/main/java/examples/pojo/RuneTree.java new file mode 100644 index 00000000..bceb458f --- /dev/null +++ b/src/main/java/examples/pojo/RuneTree.java @@ -0,0 +1,49 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class RuneTree { + + @Expose + private String displayName; + @Expose + private Long id; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + +} diff --git a/src/main/java/examples/pojo/Runes.java b/src/main/java/examples/pojo/Runes.java new file mode 100644 index 00000000..45a1832c --- /dev/null +++ b/src/main/java/examples/pojo/Runes.java @@ -0,0 +1,39 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class Runes { + + @Expose + private Rune keystone; + @Expose + private RuneTree primaryRuneTree; + @Expose + private RuneTree secondaryRuneTree; + + public Rune getKeystone() { + return keystone; + } + + public void setKeystone(Rune keystone) { + this.keystone = keystone; + } + + public RuneTree getPrimaryRuneTree() { + return primaryRuneTree; + } + + public void setPrimaryRuneTree(RuneTree runeTree) { + this.primaryRuneTree = runeTree; + } + + public RuneTree getSecondaryRuneTree() { + return secondaryRuneTree; + } + + public void setSecondaryRuneTree(RuneTree runeTree) { + this.secondaryRuneTree = runeTree; + } + +} diff --git a/src/main/java/examples/pojo/Scores.java b/src/main/java/examples/pojo/Scores.java new file mode 100644 index 00000000..c4861140 --- /dev/null +++ b/src/main/java/examples/pojo/Scores.java @@ -0,0 +1,59 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class Scores { + + @Expose + private Long assists; + @Expose + private Long creepScore; + @Expose + private Long deaths; + @Expose + private Long kills; + @Expose + private Double wardScore; + + public Long getAssists() { + return assists; + } + + public void setAssists(Long assists) { + this.assists = assists; + } + + public Long getCreepScore() { + return creepScore; + } + + public void setCreepScore(Long creepScore) { + this.creepScore = creepScore; + } + + public Long getDeaths() { + return deaths; + } + + public void setDeaths(Long deaths) { + this.deaths = deaths; + } + + public Long getKills() { + return kills; + } + + public void setKills(Long kills) { + this.kills = kills; + } + + public Double getWardScore() { + return wardScore; + } + + public void setWardScore(Double wardScore) { + this.wardScore = wardScore; + } + +} diff --git a/src/main/java/examples/pojo/StatRune.java b/src/main/java/examples/pojo/StatRune.java new file mode 100644 index 00000000..27371ce9 --- /dev/null +++ b/src/main/java/examples/pojo/StatRune.java @@ -0,0 +1,29 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class StatRune { + + @Expose + private Long id; + @Expose + private String rawDescription; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + +} diff --git a/src/main/java/examples/pojo/SummonerSpell.java b/src/main/java/examples/pojo/SummonerSpell.java new file mode 100644 index 00000000..3bac6924 --- /dev/null +++ b/src/main/java/examples/pojo/SummonerSpell.java @@ -0,0 +1,39 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class SummonerSpell { + + @Expose + private String displayName; + @Expose + private String rawDescription; + @Expose + private String rawDisplayName; + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getRawDescription() { + return rawDescription; + } + + public void setRawDescription(String rawDescription) { + this.rawDescription = rawDescription; + } + + public String getRawDisplayName() { + return rawDisplayName; + } + + public void setRawDisplayName(String rawDisplayName) { + this.rawDisplayName = rawDisplayName; + } + +} diff --git a/src/main/java/examples/pojo/SummonerSpells.java b/src/main/java/examples/pojo/SummonerSpells.java new file mode 100644 index 00000000..8a6fbde5 --- /dev/null +++ b/src/main/java/examples/pojo/SummonerSpells.java @@ -0,0 +1,29 @@ + +package examples.pojo; + +import com.google.gson.annotations.Expose; + +public class SummonerSpells { + + @Expose + private SummonerSpell summonerSpellOne; + @Expose + private SummonerSpell summonerSpellTwo; + + public SummonerSpell getFirst() { + return summonerSpellOne; + } + + public void setFirst(SummonerSpell summonerSpell) { + this.summonerSpellOne = summonerSpell; + } + + public SummonerSpell getSecond() { + return summonerSpellTwo; + } + + public void setSecond(SummonerSpell summonerSpell) { + this.summonerSpellTwo = summonerSpell; + } + +} diff --git a/src/main/java/generated/Bracket.java b/src/main/java/generated/Bracket.java index b605d1c7..345bd8bc 100644 --- a/src/main/java/generated/Bracket.java +++ b/src/main/java/generated/Bracket.java @@ -4,10 +4,7 @@ public class Bracket { - public Integer currentLoserRound; - public Integer currentRound; public Long id; - public List loserBracketMatches; public List matches; public Long phaseId; public List rosters; diff --git a/src/main/java/generated/BracketMatch.java b/src/main/java/generated/BracketMatch.java index 0af8ced0..202e4d71 100644 --- a/src/main/java/generated/BracketMatch.java +++ b/src/main/java/generated/BracketMatch.java @@ -6,9 +6,12 @@ public class BracketMatch { public Long forfeitRosterId; public Long gameId; public Long gameStartTime; + public Integer highestPossiblePosition; public Long id; public Boolean loserBracket; + public Integer lowestPossiblePosition; public Integer order; + public String resultHistory; public Long rosterId1; public Long rosterId2; public Integer round; diff --git a/src/main/java/generated/CrashReportingEnvironment.java b/src/main/java/generated/CrashReportingEnvironment.java new file mode 100644 index 00000000..7881cc34 --- /dev/null +++ b/src/main/java/generated/CrashReportingEnvironment.java @@ -0,0 +1,9 @@ +package generated; + +public class CrashReportingEnvironment { + + public String environment; + public String userId; + public String userName; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolCatalogCatalogPluginItem.java b/src/main/java/generated/LolCatalogCatalogPluginItem.java index c4df6800..7529baf1 100644 --- a/src/main/java/generated/LolCatalogCatalogPluginItem.java +++ b/src/main/java/generated/LolCatalogCatalogPluginItem.java @@ -12,6 +12,7 @@ public class LolCatalogCatalogPluginItem { public String itemInstanceId; public String name; public Boolean owned; + public LolCatalogInventoryOwnership ownershipType; public List prices; public Long purchaseDate; public Long releaseDate; diff --git a/src/main/java/generated/LolChampSelectChampSelectAction.java b/src/main/java/generated/LolChampSelectChampSelectAction.java index 9d269288..58899828 100644 --- a/src/main/java/generated/LolChampSelectChampSelectAction.java +++ b/src/main/java/generated/LolChampSelectChampSelectAction.java @@ -6,6 +6,7 @@ public class LolChampSelectChampSelectAction { public Integer championId; public Boolean completed; public Long id; + public Boolean isAllyAction; public String type; } \ No newline at end of file diff --git a/src/main/java/generated/LolChampSelectChampSelectPinDropNotification.java b/src/main/java/generated/LolChampSelectChampSelectPinDropNotification.java new file mode 100644 index 00000000..3b21389d --- /dev/null +++ b/src/main/java/generated/LolChampSelectChampSelectPinDropNotification.java @@ -0,0 +1,10 @@ +package generated; + +import java.util.List; + +public class LolChampSelectChampSelectPinDropNotification { + + public String mapSide; + public List pinDropSummoners; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolChampSelectChampSelectPinDropSummoner.java b/src/main/java/generated/LolChampSelectChampSelectPinDropSummoner.java new file mode 100644 index 00000000..93f890ac --- /dev/null +++ b/src/main/java/generated/LolChampSelectChampSelectPinDropSummoner.java @@ -0,0 +1,12 @@ +package generated; + +public class LolChampSelectChampSelectPinDropSummoner { + + public Boolean isLocalSummoner; + public Boolean isPlaceholder; + public String lane; + public Integer lanePosition; + public String position; + public Integer slotId; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolChampSelectChampSelectSession.java b/src/main/java/generated/LolChampSelectChampSelectSession.java index 391eb67b..bd96a5c5 100644 --- a/src/main/java/generated/LolChampSelectChampSelectSession.java +++ b/src/main/java/generated/LolChampSelectChampSelectSession.java @@ -17,6 +17,8 @@ public class LolChampSelectChampSelectSession { public LolChampSelectChampSelectChatRoomDetails chatDetails; public Long counter; public LolChampSelectEntitledFeatureState entitledFeatureState; + public Boolean hasSimultaneousBans; + public Boolean hasSimultaneousPicks; public Boolean isSpectating; public Long localPlayerCellId; public Integer lockedEventIndex; diff --git a/src/main/java/generated/LolChampSelectLegacyChampSelectAction.java b/src/main/java/generated/LolChampSelectLegacyChampSelectAction.java index 84f1e011..8fbe7891 100644 --- a/src/main/java/generated/LolChampSelectLegacyChampSelectAction.java +++ b/src/main/java/generated/LolChampSelectLegacyChampSelectAction.java @@ -6,6 +6,8 @@ public class LolChampSelectLegacyChampSelectAction { public Integer championId; public Boolean completed; public Long id; + public Boolean isAllyAction; + public Boolean isInProgress; public Integer pickTurn; public String type; diff --git a/src/main/java/generated/LolChampSelectLegacyChampSelectSession.java b/src/main/java/generated/LolChampSelectLegacyChampSelectSession.java index 37f2e6db..3196733b 100644 --- a/src/main/java/generated/LolChampSelectLegacyChampSelectSession.java +++ b/src/main/java/generated/LolChampSelectLegacyChampSelectSession.java @@ -10,6 +10,9 @@ public class LolChampSelectLegacyChampSelectSession { public Boolean allowSkinSelection; public LolChampSelectLegacyChampSelectBannedChampions bans; public LolChampSelectLegacyChampSelectChatRoomDetails chatDetails; + public Boolean hasSimultaneousBans; + public Boolean hasSimultaneousPicks; + public Boolean isCustomGame; public Boolean isSpectating; public Long localPlayerCellId; public List myTeam; diff --git a/src/main/java/generated/LolChampSelectLegacyQueueGameTypeConfig.java b/src/main/java/generated/LolChampSelectLegacyQueueGameTypeConfig.java index ff8e668b..8183d33c 100644 --- a/src/main/java/generated/LolChampSelectLegacyQueueGameTypeConfig.java +++ b/src/main/java/generated/LolChampSelectLegacyQueueGameTypeConfig.java @@ -5,5 +5,6 @@ public class LolChampSelectLegacyQueueGameTypeConfig { public Boolean allowTrades; public Boolean battleBoost; public Integer maxAllowableBans; + public String name; } \ No newline at end of file diff --git a/src/main/java/generated/LolChampSelectSfxNotification.java b/src/main/java/generated/LolChampSelectSfxNotification.java new file mode 100644 index 00000000..0783351a --- /dev/null +++ b/src/main/java/generated/LolChampSelectSfxNotification.java @@ -0,0 +1,9 @@ +package generated; + +public class LolChampSelectSfxNotification { + + public Long delayMillis; + public String eventType; + public String path; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolChatLcuSocialConfig.java b/src/main/java/generated/LolChatLcuSocialConfig.java index d4d078e3..4459cb10 100644 --- a/src/main/java/generated/LolChatLcuSocialConfig.java +++ b/src/main/java/generated/LolChatLcuSocialConfig.java @@ -7,6 +7,7 @@ public class LolChatLcuSocialConfig { public Long QueueJobGraceSeconds; public Boolean ReplaceRichMessages; public Boolean SilenceChatWhileInGame; + public Boolean allowGroupByGame; public Boolean gameNameTaglineEnabled; public Object platformToRegionMap; diff --git a/src/main/java/generated/LolChatSummonerStatus.java b/src/main/java/generated/LolChatSummonerStatus.java new file mode 100644 index 00000000..3f9b4536 --- /dev/null +++ b/src/main/java/generated/LolChatSummonerStatus.java @@ -0,0 +1,7 @@ +package generated; + +public class LolChatSummonerStatus { + + public Boolean ready; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolClashBracket.java b/src/main/java/generated/LolClashBracket.java index 553fcc68..20110576 100644 --- a/src/main/java/generated/LolClashBracket.java +++ b/src/main/java/generated/LolClashBracket.java @@ -4,11 +4,8 @@ public class LolClashBracket { - public Integer currentLoserRound; - public Integer currentRound; public Long id; public Boolean isComplete; - public List loserBracketMatches; public List matches; public Integer period; public List rosters; diff --git a/src/main/java/generated/LolClashClashConfig.java b/src/main/java/generated/LolClashClashConfig.java index 943a3ccb..4086b23c 100644 --- a/src/main/java/generated/LolClashClashConfig.java +++ b/src/main/java/generated/LolClashClashConfig.java @@ -5,7 +5,6 @@ public class LolClashClashConfig { public Boolean CheckPartiesRegistration; - public String DarkModeEntitlement; public List DisabledEvents; public LolClashClashState EnabledState; public Boolean EventSendingEnabled; @@ -17,7 +16,6 @@ public class LolClashClashConfig { public Integer MinClashNotificationsSummonerLevel; public Integer MinClashSummonerLevel; public Integer RewardGrantRetryIntervalSeconds; - public Boolean UseIndividualEntitlement; public LolClashClashVisibility Visibility; public Integer VoiceEobQuitDelaySeconds; public Integer VoiceNoDelayAutoStartSeconds; diff --git a/src/main/java/generated/LolClashClashState.java b/src/main/java/generated/LolClashClashState.java index bf51cb28..b908d695 100644 --- a/src/main/java/generated/LolClashClashState.java +++ b/src/main/java/generated/LolClashClashState.java @@ -4,10 +4,6 @@ public enum LolClashClashState { - @SerializedName("DarkDisabled") - DARKDISABLED, - @SerializedName("DarkEnabled") - DARKENABLED, @SerializedName("Disabled") DISABLED, @SerializedName("Enabled") diff --git a/src/main/java/generated/LolClashClashVisibility.java b/src/main/java/generated/LolClashClashVisibility.java index dcddadb6..9d9a7dd9 100644 --- a/src/main/java/generated/LolClashClashVisibility.java +++ b/src/main/java/generated/LolClashClashVisibility.java @@ -6,8 +6,6 @@ public enum LolClashClashVisibility { @SerializedName("Hidden") HIDDEN, - @SerializedName("DarkVisible") - DARKVISIBLE, @SerializedName("Visible") VISIBLE diff --git a/src/main/java/generated/LolClashEntitlementsToken.java b/src/main/java/generated/LolClashEntitlementsToken.java deleted file mode 100644 index bd4ecda1..00000000 --- a/src/main/java/generated/LolClashEntitlementsToken.java +++ /dev/null @@ -1,11 +0,0 @@ -package generated; - -import java.util.List; - -public class LolClashEntitlementsToken { - - public String accessToken; - public List entitlements; - public String token; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolClashRosterNotifyReason.java b/src/main/java/generated/LolClashRosterNotifyReason.java index bf748d81..be35f1e9 100644 --- a/src/main/java/generated/LolClashRosterNotifyReason.java +++ b/src/main/java/generated/LolClashRosterNotifyReason.java @@ -50,8 +50,6 @@ public enum LolClashRosterNotifyReason { GAME_END_ERROR, @SerializedName("QUEUE_DODGE") QUEUE_DODGE, - @SerializedName("LOSER_ROUND_COMPLETE") - LOSER_ROUND_COMPLETE, @SerializedName("OWNER_TRANSFER") OWNER_TRANSFER, @SerializedName("SUB_INVITE") @@ -84,8 +82,8 @@ public enum LolClashRosterNotifyReason { VOTE_WITHDRAW_DISMISS, @SerializedName("WITHDRAW") WITHDRAW, - @SerializedName("WINNER_ROUND_COMPLETE") - WINNER_ROUND_COMPLETE, + @SerializedName("ROUND_COMPLETE") + ROUND_COMPLETE, @SerializedName("NO_SHOW_PING") NO_SHOW_PING, @SerializedName("TIER_CHANGED") @@ -102,6 +100,10 @@ public enum LolClashRosterNotifyReason { BANNED_SMURF_TEAMMATE, @SerializedName("BANNED_SMURF_OPPONENT") BANNED_SMURF_OPPONENT, + @SerializedName("TICKET_CHARGED") + TICKET_CHARGED, + @SerializedName("TICKET_REFUNDED") + TICKET_REFUNDED, @SerializedName("SUB_INVITE_SELF") SUB_INVITE_SELF, @SerializedName("GAME_START_RETRY") diff --git a/src/main/java/generated/LolContentTargetingPlatformConfig.java b/src/main/java/generated/LolContentTargetingPlatformConfig.java index 75662974..8ff30a72 100644 --- a/src/main/java/generated/LolContentTargetingPlatformConfig.java +++ b/src/main/java/generated/LolContentTargetingPlatformConfig.java @@ -5,6 +5,7 @@ public class LolContentTargetingPlatformConfig { public Boolean ABTestFilterEnabled; public Long ABTestFilterGroups; public Long ABTestFilterSalt; + public Integer AsynchronousEventHandlerSetupDelayInSeconds; public Boolean Enabled; public Boolean EntitlementsFilterEnabled; public String EntitlementsPrefix; @@ -23,8 +24,8 @@ public class LolContentTargetingPlatformConfig { public Boolean RankFilterEnabled; public Boolean RankedFilterEnabled; public Boolean SummonerIconFilterEnabled; + public String TargetingAttributeStorageBaseUri; public Boolean TargetingAttributeStorageEnabled; - public String TargetingAttributeStorageUri; public Integer TasIngestionDelayInSeconds; } \ No newline at end of file diff --git a/src/main/java/generated/LolContentTargetingTargetingAttributes.java b/src/main/java/generated/LolContentTargetingTargetingAttributes.java new file mode 100644 index 00000000..5a677d6a --- /dev/null +++ b/src/main/java/generated/LolContentTargetingTargetingAttributes.java @@ -0,0 +1,7 @@ +package generated; + +public class LolContentTargetingTargetingAttributes { + + public Object result; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolCosmeticsCosmeticsTFTMapSkin.java b/src/main/java/generated/LolCosmeticsCosmeticsTFTMapSkin.java index 1ce354bc..cd565b7f 100644 --- a/src/main/java/generated/LolCosmeticsCosmeticsTFTMapSkin.java +++ b/src/main/java/generated/LolCosmeticsCosmeticsTFTMapSkin.java @@ -11,6 +11,7 @@ public class LolCosmeticsCosmeticsTFTMapSkin { public Boolean loyalty; public String name; public Boolean owned; + public Integer rarityValue; public Boolean selected; } \ No newline at end of file diff --git a/src/main/java/generated/LolCosmeticsGameDataTFTMapSkin.java b/src/main/java/generated/LolCosmeticsGameDataTFTMapSkin.java index 2410c53d..dfe59f3b 100644 --- a/src/main/java/generated/LolCosmeticsGameDataTFTMapSkin.java +++ b/src/main/java/generated/LolCosmeticsGameDataTFTMapSkin.java @@ -9,5 +9,6 @@ public class LolCosmeticsGameDataTFTMapSkin { public Integer itemId; public String loadoutsIcon; public String name; + public Integer rarityValue; } \ No newline at end of file diff --git a/src/main/java/generated/LolGameflowCrashReportingSettings.java b/src/main/java/generated/LolGameflowCrashReportingSettings.java new file mode 100644 index 00000000..b55b5d5a --- /dev/null +++ b/src/main/java/generated/LolGameflowCrashReportingSettings.java @@ -0,0 +1,8 @@ +package generated; + +public class LolGameflowCrashReportingSettings { + + public Boolean enabled; + public String type; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolLobbyTeamBuilderChampSelectAction.java b/src/main/java/generated/LolLobbyTeamBuilderChampSelectAction.java index 8055f1ca..2a9ea025 100644 --- a/src/main/java/generated/LolLobbyTeamBuilderChampSelectAction.java +++ b/src/main/java/generated/LolLobbyTeamBuilderChampSelectAction.java @@ -6,6 +6,8 @@ public class LolLobbyTeamBuilderChampSelectAction { public Integer championId; public Boolean completed; public Long id; + public Boolean isAllyAction; + public Boolean isInProgress; public String type; } \ No newline at end of file diff --git a/src/main/java/generated/LolLobbyTeamBuilderChampSelectSession.java b/src/main/java/generated/LolLobbyTeamBuilderChampSelectSession.java index c85f5fab..ca73b8b0 100644 --- a/src/main/java/generated/LolLobbyTeamBuilderChampSelectSession.java +++ b/src/main/java/generated/LolLobbyTeamBuilderChampSelectSession.java @@ -16,6 +16,8 @@ public class LolLobbyTeamBuilderChampSelectSession { public LolLobbyTeamBuilderChampSelectChatRoomDetails chatDetails; public Long counter; public LolLobbyTeamBuilderEntitledFeatureState entitledFeatureState; + public Boolean hasSimultaneousBans; + public Boolean hasSimultaneousPicks; public Boolean isSpectating; public Long localPlayerCellId; public Integer lockedEventIndex; diff --git a/src/main/java/generated/LolLoginCrashReportingEnvironment.java b/src/main/java/generated/LolLoginCrashReportingEnvironment.java new file mode 100644 index 00000000..204a3b24 --- /dev/null +++ b/src/main/java/generated/LolLoginCrashReportingEnvironment.java @@ -0,0 +1,9 @@ +package generated; + +public class LolLoginCrashReportingEnvironment { + + public String environment; + public String userId; + public String userName; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolMatchHistoryRecentlyPlayedSummoner.java b/src/main/java/generated/LolMatchHistoryRecentlyPlayedSummoner.java index d59aa943..f5649492 100644 --- a/src/main/java/generated/LolMatchHistoryRecentlyPlayedSummoner.java +++ b/src/main/java/generated/LolMatchHistoryRecentlyPlayedSummoner.java @@ -5,6 +5,7 @@ public class LolMatchHistoryRecentlyPlayedSummoner { public Long championId; public String gameCreationDate; public Long gameId; + public String puuid; public Long summonerId; public String summonerName; public Long teamId; diff --git a/src/main/java/generated/LolMatchHistorySummoner.java b/src/main/java/generated/LolMatchHistorySummoner.java new file mode 100644 index 00000000..73f6f1b4 --- /dev/null +++ b/src/main/java/generated/LolMatchHistorySummoner.java @@ -0,0 +1,8 @@ +package generated; + +public class LolMatchHistorySummoner { + + public String displayName; + public String puuid; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolMatchHistorySummonerIdAndName.java b/src/main/java/generated/LolMatchHistorySummonerIdAndName.java deleted file mode 100644 index 35fe0392..00000000 --- a/src/main/java/generated/LolMatchHistorySummonerIdAndName.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolMatchHistorySummonerIdAndName { - - public String displayName; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolMissionsMissionAsset.java b/src/main/java/generated/LolMissionsMissionAsset.java new file mode 100644 index 00000000..9a9695fe --- /dev/null +++ b/src/main/java/generated/LolMissionsMissionAsset.java @@ -0,0 +1,8 @@ +package generated; + +public class LolMissionsMissionAsset { + + public String internalName; + public String path; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolMissionsTftPaidBattlepass.java b/src/main/java/generated/LolMissionsTftPaidBattlepass.java new file mode 100644 index 00000000..15262a86 --- /dev/null +++ b/src/main/java/generated/LolMissionsTftPaidBattlepass.java @@ -0,0 +1,13 @@ +package generated; + +import java.util.List; + +public class LolMissionsTftPaidBattlepass { + + public LolMissionsTftPaidBattlepassMilestone activeMilestone; + public List bonuses; + public LolMissionsTftPaidBattlepassInfo info; + public List milestones; + public Integer totalPointsEarned; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolMissionsTftPaidBattlepassInfo.java b/src/main/java/generated/LolMissionsTftPaidBattlepassInfo.java new file mode 100644 index 00000000..8092ff7e --- /dev/null +++ b/src/main/java/generated/LolMissionsTftPaidBattlepassInfo.java @@ -0,0 +1,11 @@ +package generated; + +public class LolMissionsTftPaidBattlepassInfo { + + public String description; + public Long endDate; + public Boolean premium; + public Long startDate; + public String title; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolMissionsTftPaidBattlepassMilestone.java b/src/main/java/generated/LolMissionsTftPaidBattlepassMilestone.java new file mode 100644 index 00000000..d035d32d --- /dev/null +++ b/src/main/java/generated/LolMissionsTftPaidBattlepassMilestone.java @@ -0,0 +1,23 @@ +package generated; + +import java.util.List; + +public class LolMissionsTftPaidBattlepassMilestone { + + public String description; + public String iconImageUrl; + public Boolean isBonus; + public Boolean isKeystone; + public Boolean isLocked; + public Boolean isPaid; + public Integer level; + public String missionId; + public Integer pointsEarnedForMilestone; + public Integer pointsNeededForMilestone; + public List rewards; + public String state; + public String status; + public String title; + public Integer totalPointsForMilestone; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolPatchChunkingPatcherEnvironment.java b/src/main/java/generated/LolPatchChunkingPatcherEnvironment.java index 0442c95b..12909772 100644 --- a/src/main/java/generated/LolPatchChunkingPatcherEnvironment.java +++ b/src/main/java/generated/LolPatchChunkingPatcherEnvironment.java @@ -1,12 +1,9 @@ package generated; -import java.util.List; - public class LolPatchChunkingPatcherEnvironment { public Boolean client_patcher_available; public Boolean client_patcher_enabled; - public List components; public Boolean game_patcher_available; public Boolean game_patcher_enabled; diff --git a/src/main/java/generated/LolPatchPatcherExecutableSettings.java b/src/main/java/generated/LolPatchPatcherExecutableSettings.java deleted file mode 100644 index 626edabc..00000000 --- a/src/main/java/generated/LolPatchPatcherExecutableSettings.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolPatchPatcherExecutableSettings { - - public String app; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolPatchPatcherSelfUpdateSettings.java b/src/main/java/generated/LolPatchPatcherSelfUpdateSettings.java index 297c115c..1494598f 100644 --- a/src/main/java/generated/LolPatchPatcherSelfUpdateSettings.java +++ b/src/main/java/generated/LolPatchPatcherSelfUpdateSettings.java @@ -2,7 +2,6 @@ public class LolPatchPatcherSelfUpdateSettings { - public LolPatchPatcherExecutableSettings executables; public Integer restart_delay; } \ No newline at end of file diff --git a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginError.java b/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginError.java deleted file mode 100644 index 7ef27625..00000000 --- a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginError.java +++ /dev/null @@ -1,9 +0,0 @@ -package generated; - -public class LolPlayerBehaviorPlayerBehavior_LoginError { - - public String description; - public String id; - public String messageId; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSession.java b/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSession.java deleted file mode 100644 index 7bffe168..00000000 --- a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSession.java +++ /dev/null @@ -1,10 +0,0 @@ -package generated; - -public class LolPlayerBehaviorPlayerBehavior_LoginSession { - - public Long accountId; - public LolPlayerBehaviorPlayerBehavior_LoginError error; - public LolPlayerBehaviorPlayerBehavior_LoginSessionState state; - public Long summonerId; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSessionState.java b/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSessionState.java deleted file mode 100644 index 616a43e1..00000000 --- a/src/main/java/generated/LolPlayerBehaviorPlayerBehavior_LoginSessionState.java +++ /dev/null @@ -1,16 +0,0 @@ -package generated; - -import com.google.gson.annotations.SerializedName; - -public enum LolPlayerBehaviorPlayerBehavior_LoginSessionState { - - @SerializedName("IN_PROGRESS") - IN_PROGRESS, - @SerializedName("SUCCEEDED") - SUCCEEDED, - @SerializedName("LOGGING_OUT") - LOGGING_OUT, - @SerializedName("ERROR") - ERROR - -} \ No newline at end of file diff --git a/src/main/java/generated/LolPremadeVoiceConfigReadinessEnum.java b/src/main/java/generated/LolPremadeVoiceConfigReadinessEnum.java new file mode 100644 index 00000000..ad56a00f --- /dev/null +++ b/src/main/java/generated/LolPremadeVoiceConfigReadinessEnum.java @@ -0,0 +1,14 @@ +package generated; + +import com.google.gson.annotations.SerializedName; + +public enum LolPremadeVoiceConfigReadinessEnum { + + @SerializedName("NotReady") + NOTREADY, + @SerializedName("Ready") + READY, + @SerializedName("Disabled") + DISABLED + +} \ No newline at end of file diff --git a/src/main/java/generated/LolPremadeVoiceConfigStatus.java b/src/main/java/generated/LolPremadeVoiceConfigStatus.java new file mode 100644 index 00000000..cdcc90a7 --- /dev/null +++ b/src/main/java/generated/LolPremadeVoiceConfigStatus.java @@ -0,0 +1,7 @@ +package generated; + +public class LolPremadeVoiceConfigStatus { + + public LolPremadeVoiceConfigReadinessEnum readiness; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolPremadeVoiceConfigType.java b/src/main/java/generated/LolPremadeVoiceConfigType.java new file mode 100644 index 00000000..b81896c5 --- /dev/null +++ b/src/main/java/generated/LolPremadeVoiceConfigType.java @@ -0,0 +1,12 @@ +package generated; + +import com.google.gson.annotations.SerializedName; + +public enum LolPremadeVoiceConfigType { + + @SerializedName("public") + PUBLIC, + @SerializedName("player") + PLAYER + +} \ No newline at end of file diff --git a/src/main/java/generated/LolPremadeVoiceDeviceResourceRiotClient.java b/src/main/java/generated/LolPremadeVoiceDeviceResourceRiotClient.java new file mode 100644 index 00000000..0411fbb9 --- /dev/null +++ b/src/main/java/generated/LolPremadeVoiceDeviceResourceRiotClient.java @@ -0,0 +1,11 @@ +package generated; + +public class LolPremadeVoiceDeviceResourceRiotClient { + + public String handle; + public Boolean is_current_device; + public Boolean is_default; + public Boolean is_effective_device; + public String name; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolRankedLeagueDivisionInfo.java b/src/main/java/generated/LolRankedLeagueDivisionInfo.java index 7f6de786..7d24e986 100644 --- a/src/main/java/generated/LolRankedLeagueDivisionInfo.java +++ b/src/main/java/generated/LolRankedLeagueDivisionInfo.java @@ -6,7 +6,7 @@ public class LolRankedLeagueDivisionInfo { public Long apexUnlockTimeMillis; public LolRankedLeagueDivision division; - public Long maxLeagueSize; + public Integer maxLeagueSize; public List standings; public LolRankedLeagueTier tier; diff --git a/src/main/java/generated/LolRankedRankedStats.java b/src/main/java/generated/LolRankedRankedStats.java index 9c53518f..45e99080 100644 --- a/src/main/java/generated/LolRankedRankedStats.java +++ b/src/main/java/generated/LolRankedRankedStats.java @@ -10,6 +10,7 @@ public class LolRankedRankedStats { public LolRankedLeagueDivision highestPreviousSeasonEndDivision; public LolRankedLeagueTier highestPreviousSeasonEndTier; public LolRankedRankedQueueStats highestRankedEntry; + public LolRankedRankedQueueStats highestRankedEntrySR; public Object queueMap; public List queues; public Integer rankedRegaliaLevel; diff --git a/src/main/java/generated/LolRankedRewardsInfo.java b/src/main/java/generated/LolRankedRewardsInfo.java index ad18f07f..31cc9c6a 100644 --- a/src/main/java/generated/LolRankedRewardsInfo.java +++ b/src/main/java/generated/LolRankedRewardsInfo.java @@ -4,6 +4,7 @@ public class LolRankedRewardsInfo { + public Integer currentSeasonId; public LolRankedSeasonSplit currentSplit; public Integer currentSplitId; public Object rewardInfoByRewardId; diff --git a/src/main/java/generated/LolRankedSplitReward.java b/src/main/java/generated/LolRankedSplitReward.java index 8a376e50..0dc6d070 100644 --- a/src/main/java/generated/LolRankedSplitReward.java +++ b/src/main/java/generated/LolRankedSplitReward.java @@ -6,6 +6,7 @@ public class LolRankedSplitReward { public String id; public Integer pointsRequired; public Integer quantity; + public Integer regaliaLevel; public String rewardType; public Integer splitId; diff --git a/src/main/java/generated/LolRevivalsAccountSettingsData.java b/src/main/java/generated/LolRevivalsAccountSettingsData.java deleted file mode 100644 index 919aecd4..00000000 --- a/src/main/java/generated/LolRevivalsAccountSettingsData.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsAccountSettingsData { - - public LolRevivalsEligibility eligibility; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsAccountSettingsPayload.java b/src/main/java/generated/LolRevivalsAccountSettingsPayload.java deleted file mode 100644 index c9540a74..00000000 --- a/src/main/java/generated/LolRevivalsAccountSettingsPayload.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsAccountSettingsPayload { - - public Object data; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsChallengesProgress.java b/src/main/java/generated/LolRevivalsChallengesProgress.java deleted file mode 100644 index ece57d10..00000000 --- a/src/main/java/generated/LolRevivalsChallengesProgress.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsChallengesProgress { - - public LolRevivalsProgress progress; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsDailyPlayProgress.java b/src/main/java/generated/LolRevivalsDailyPlayProgress.java deleted file mode 100644 index 370bb012..00000000 --- a/src/main/java/generated/LolRevivalsDailyPlayProgress.java +++ /dev/null @@ -1,8 +0,0 @@ -package generated; - -public class LolRevivalsDailyPlayProgress { - - public LolRevivalsProgress progress; - public Long unlockTime; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsEligibility.java b/src/main/java/generated/LolRevivalsEligibility.java deleted file mode 100644 index fa33f936..00000000 --- a/src/main/java/generated/LolRevivalsEligibility.java +++ /dev/null @@ -1,8 +0,0 @@ -package generated; - -public class LolRevivalsEligibility { - - public Boolean isEligible; - public Boolean isFirstTouch; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMatchHistoryGame.java b/src/main/java/generated/LolRevivalsMatchHistoryGame.java deleted file mode 100644 index 4cbde0e7..00000000 --- a/src/main/java/generated/LolRevivalsMatchHistoryGame.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsMatchHistoryGame { - - public Long gameCreation; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMatchHistoryGameList.java b/src/main/java/generated/LolRevivalsMatchHistoryGameList.java deleted file mode 100644 index de3b5418..00000000 --- a/src/main/java/generated/LolRevivalsMatchHistoryGameList.java +++ /dev/null @@ -1,9 +0,0 @@ -package generated; - -import java.util.List; - -public class LolRevivalsMatchHistoryGameList { - - public List games; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMatchHistoryList.java b/src/main/java/generated/LolRevivalsMatchHistoryList.java deleted file mode 100644 index 37163034..00000000 --- a/src/main/java/generated/LolRevivalsMatchHistoryList.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsMatchHistoryList { - - public LolRevivalsMatchHistoryGameList games; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMission.java b/src/main/java/generated/LolRevivalsMission.java deleted file mode 100644 index 83e3870c..00000000 --- a/src/main/java/generated/LolRevivalsMission.java +++ /dev/null @@ -1,14 +0,0 @@ -package generated; - -import java.util.List; - -public class LolRevivalsMission { - - public Long completedDate; - public LolRevivalsMissionDisplay display; - public String internalName; - public List objectives; - public String seriesName; - public String status; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMissionDisplay.java b/src/main/java/generated/LolRevivalsMissionDisplay.java deleted file mode 100644 index d944f948..00000000 --- a/src/main/java/generated/LolRevivalsMissionDisplay.java +++ /dev/null @@ -1,9 +0,0 @@ -package generated; - -import java.util.List; - -public class LolRevivalsMissionDisplay { - - public List locations; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMissionSeries.java b/src/main/java/generated/LolRevivalsMissionSeries.java deleted file mode 100644 index e7be60be..00000000 --- a/src/main/java/generated/LolRevivalsMissionSeries.java +++ /dev/null @@ -1,9 +0,0 @@ -package generated; - -public class LolRevivalsMissionSeries { - - public String id; - public String internalName; - public String status; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsMissionSeriesOptIn.java b/src/main/java/generated/LolRevivalsMissionSeriesOptIn.java deleted file mode 100644 index 8a35dfd6..00000000 --- a/src/main/java/generated/LolRevivalsMissionSeriesOptIn.java +++ /dev/null @@ -1,8 +0,0 @@ -package generated; - -public class LolRevivalsMissionSeriesOptIn { - - public String option; - public String seriesId; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsObjective.java b/src/main/java/generated/LolRevivalsObjective.java deleted file mode 100644 index 0ff709cc..00000000 --- a/src/main/java/generated/LolRevivalsObjective.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsObjective { - - public LolRevivalsProgress progress; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsProgress.java b/src/main/java/generated/LolRevivalsProgress.java deleted file mode 100644 index dd5301da..00000000 --- a/src/main/java/generated/LolRevivalsProgress.java +++ /dev/null @@ -1,9 +0,0 @@ -package generated; - -public class LolRevivalsProgress { - - public Integer currentProgress; - public Integer lastViewedProgress; - public Integer totalCount; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolRevivalsSummoner.java b/src/main/java/generated/LolRevivalsSummoner.java deleted file mode 100644 index afd9636d..00000000 --- a/src/main/java/generated/LolRevivalsSummoner.java +++ /dev/null @@ -1,7 +0,0 @@ -package generated; - -public class LolRevivalsSummoner { - - public Integer summonerLevel; - -} \ No newline at end of file diff --git a/src/main/java/generated/LolStatstonesStatstone.java b/src/main/java/generated/LolStatstonesStatstone.java index 10b9b9be..a870c267 100644 --- a/src/main/java/generated/LolStatstonesStatstone.java +++ b/src/main/java/generated/LolStatstonesStatstone.java @@ -12,7 +12,7 @@ public class LolStatstonesStatstone { public String imageUrl; public Boolean isComplete; public Boolean isEpic; - public Boolean isFavorite; + public Boolean isFeatured; public Boolean isRetired; public String name; public String nextMilestone; diff --git a/src/main/java/generated/LolStatstonesStatstoneFeaturedRequest.java b/src/main/java/generated/LolStatstonesStatstoneFeaturedRequest.java new file mode 100644 index 00000000..2cfac3db --- /dev/null +++ b/src/main/java/generated/LolStatstonesStatstoneFeaturedRequest.java @@ -0,0 +1,10 @@ +package generated; + +import java.util.List; + +public class LolStatstonesStatstoneFeaturedRequest { + + public List existingFeatured; + public Integer index; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolStatstonesStatstoneMasteryVignette.java b/src/main/java/generated/LolStatstonesStatstoneMasteryVignette.java index fb5687ad..e3917231 100644 --- a/src/main/java/generated/LolStatstonesStatstoneMasteryVignette.java +++ b/src/main/java/generated/LolStatstonesStatstoneMasteryVignette.java @@ -1,8 +1,12 @@ package generated; +import java.util.List; + public class LolStatstonesStatstoneMasteryVignette { + public List completedSetUuids; public Integer masteryLevel; public Integer numSetsCompleted; + public String puuid; } \ No newline at end of file diff --git a/src/main/java/generated/LolStatstonesStatstoneProgress.java b/src/main/java/generated/LolStatstonesStatstoneProgress.java index bfe30c37..d211a517 100644 --- a/src/main/java/generated/LolStatstonesStatstoneProgress.java +++ b/src/main/java/generated/LolStatstonesStatstoneProgress.java @@ -3,7 +3,10 @@ public class LolStatstonesStatstoneProgress { public String delta; + public String existingProgressPercent; public String imageUrl; + public String newMilestoneDifference; + public String newProgressPercent; public String nextMilestone; public String statstoneId; public String statstoneName; diff --git a/src/main/java/generated/LolSummonerStatus.java b/src/main/java/generated/LolSummonerStatus.java new file mode 100644 index 00000000..4b83c30e --- /dev/null +++ b/src/main/java/generated/LolSummonerStatus.java @@ -0,0 +1,7 @@ +package generated; + +public class LolSummonerStatus { + + public Boolean ready; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolSummonerSummonerCreateRequest.java b/src/main/java/generated/LolSummonerSummonerCreateRequest.java new file mode 100644 index 00000000..5d6d3f33 --- /dev/null +++ b/src/main/java/generated/LolSummonerSummonerCreateRequest.java @@ -0,0 +1,7 @@ +package generated; + +public class LolSummonerSummonerCreateRequest { + + public String summonerName; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolTrophiesClashV2TrophyRewardSpec.java b/src/main/java/generated/LolTrophiesClashV2TrophyRewardSpec.java index 7d19830f..120b646d 100644 --- a/src/main/java/generated/LolTrophiesClashV2TrophyRewardSpec.java +++ b/src/main/java/generated/LolTrophiesClashV2TrophyRewardSpec.java @@ -3,6 +3,9 @@ public class LolTrophiesClashV2TrophyRewardSpec { public String bracket; + public String cup; + public String gem; + public String pedestal; public String seasonId; public String theme; public String tier; diff --git a/src/main/java/generated/LolTrophiesLoadout.java b/src/main/java/generated/LolTrophiesLoadout.java new file mode 100644 index 00000000..1cb039d8 --- /dev/null +++ b/src/main/java/generated/LolTrophiesLoadout.java @@ -0,0 +1,10 @@ +package generated; + +public class LolTrophiesLoadout { + + public String id; + public Object loadout; + public String name; + public String scope; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolTrophiesLoadoutItem.java b/src/main/java/generated/LolTrophiesLoadoutItem.java new file mode 100644 index 00000000..7330b655 --- /dev/null +++ b/src/main/java/generated/LolTrophiesLoadoutItem.java @@ -0,0 +1,9 @@ +package generated; + +public class LolTrophiesLoadoutItem { + + public Object data; + public String inventoryType; + public Integer itemId; + +} \ No newline at end of file diff --git a/src/main/java/generated/LolTrophiesTrophyProfileData.java b/src/main/java/generated/LolTrophiesTrophyProfileData.java index 5bda715e..e967ebe6 100644 --- a/src/main/java/generated/LolTrophiesTrophyProfileData.java +++ b/src/main/java/generated/LolTrophiesTrophyProfileData.java @@ -3,6 +3,9 @@ public class LolTrophiesTrophyProfileData { public Long bracket; + public String cup; + public String gem; + public String pedestal; public Long seasonId; public String theme; public Long tier; diff --git a/src/main/java/generated/LolWorldsTokenCardLootTokenBankCardGdsResource.java b/src/main/java/generated/LolWorldsTokenCardLootTokenBankCardGdsResource.java index df44d292..2c7539d9 100644 --- a/src/main/java/generated/LolWorldsTokenCardLootTokenBankCardGdsResource.java +++ b/src/main/java/generated/LolWorldsTokenCardLootTokenBankCardGdsResource.java @@ -17,5 +17,6 @@ public class LolWorldsTokenCardLootTokenBankCardGdsResource { public String tooltipSplashPath; public String tooltipTitleText; public String unlockItemId; + public String unlockItemType; } \ No newline at end of file diff --git a/src/main/java/generated/LolWorldsTokenCardTokenUpsellLockedType.java b/src/main/java/generated/LolWorldsTokenCardTokenUpsellLockedType.java index 4b6672c3..53f07173 100644 --- a/src/main/java/generated/LolWorldsTokenCardTokenUpsellLockedType.java +++ b/src/main/java/generated/LolWorldsTokenCardTokenUpsellLockedType.java @@ -6,9 +6,9 @@ public enum LolWorldsTokenCardTokenUpsellLockedType { @SerializedName("UNASSIGNED") UNASSIGNED, - @SerializedName("UNLOCKED") - UNLOCKED, @SerializedName("LOCKED") - LOCKED + LOCKED, + @SerializedName("UNLOCKED") + UNLOCKED } \ No newline at end of file diff --git a/src/main/java/generated/PatcherChunkingPatcherEnvironment.java b/src/main/java/generated/PatcherChunkingPatcherEnvironment.java index cd16121e..2e1c998e 100644 --- a/src/main/java/generated/PatcherChunkingPatcherEnvironment.java +++ b/src/main/java/generated/PatcherChunkingPatcherEnvironment.java @@ -1,9 +1,10 @@ package generated; -import java.util.List; - public class PatcherChunkingPatcherEnvironment { - public List components; + public Boolean client_patcher_available; + public Boolean client_patcher_enabled; + public Boolean game_patcher_available; + public Boolean game_patcher_enabled; } \ No newline at end of file diff --git a/src/main/java/generated/PatcherComponentResource.java b/src/main/java/generated/PatcherComponentResource.java deleted file mode 100644 index a7792db7..00000000 --- a/src/main/java/generated/PatcherComponentResource.java +++ /dev/null @@ -1,19 +0,0 @@ -package generated; - -import java.util.List; - -public class PatcherComponentResource { - - public Boolean copy_to_solution; - public List headers; - public PatcherComponentResourceHistory history; - public String hostname; - public String id; - public String install_dir; - public String locale; - public String region; - public String remote_path; - public PatcherComponentResourceType type; - public Boolean use_tls; - -} \ No newline at end of file diff --git a/src/main/java/generated/PatcherComponentResourceHistory.java b/src/main/java/generated/PatcherComponentResourceHistory.java deleted file mode 100644 index 98467cd3..00000000 --- a/src/main/java/generated/PatcherComponentResourceHistory.java +++ /dev/null @@ -1,12 +0,0 @@ -package generated; - -import com.google.gson.annotations.SerializedName; - -public enum PatcherComponentResourceHistory { - - @SerializedName("none") - NONE, - @SerializedName("keep") - KEEP - -} \ No newline at end of file diff --git a/src/main/java/generated/PatcherComponentResourceType.java b/src/main/java/generated/PatcherComponentResourceType.java deleted file mode 100644 index 4d7814d6..00000000 --- a/src/main/java/generated/PatcherComponentResourceType.java +++ /dev/null @@ -1,12 +0,0 @@ -package generated; - -import com.google.gson.annotations.SerializedName; - -public enum PatcherComponentResourceType { - - @SerializedName("project") - PROJECT, - @SerializedName("solution") - SOLUTION - -} \ No newline at end of file diff --git a/src/main/java/generated/PatcherHeaderEntry.java b/src/main/java/generated/PatcherHeaderEntry.java deleted file mode 100644 index 0fdbedc0..00000000 --- a/src/main/java/generated/PatcherHeaderEntry.java +++ /dev/null @@ -1,8 +0,0 @@ -package generated; - -public class PatcherHeaderEntry { - - public String key; - public String value; - -} \ No newline at end of file diff --git a/src/main/java/generated/PatcherInjectedPatcherError.java b/src/main/java/generated/PatcherInjectedPatcherError.java deleted file mode 100644 index 0523ccbf..00000000 --- a/src/main/java/generated/PatcherInjectedPatcherError.java +++ /dev/null @@ -1,16 +0,0 @@ -package generated; - -import com.google.gson.annotations.SerializedName; - -public enum PatcherInjectedPatcherError { - - @SerializedName("UnspecifiedError") - UNSPECIFIEDERROR, - @SerializedName("FailedToFindFile") - FAILEDTOFINDFILE, - @SerializedName("FailedToResolveHostName") - FAILEDTORESOLVEHOSTNAME, - @SerializedName("FailedFailedToWriteFile") - FAILEDFAILEDTOWRITEFILE - -} \ No newline at end of file diff --git a/src/main/java/generated/PatcherProductResource.java b/src/main/java/generated/PatcherProductResource.java index e1cc517a..fe2ba4c2 100644 --- a/src/main/java/generated/PatcherProductResource.java +++ b/src/main/java/generated/PatcherProductResource.java @@ -1,11 +1,7 @@ package generated; -import java.util.List; - public class PatcherProductResource { - public List components; public String id; - public Integer refresh_period; } \ No newline at end of file diff --git a/src/main/java/generated/PluginResource.java b/src/main/java/generated/PluginResource.java index 7e39012d..a21dc0d3 100644 --- a/src/main/java/generated/PluginResource.java +++ b/src/main/java/generated/PluginResource.java @@ -12,7 +12,6 @@ public class PluginResource { public List implementedContracts; public Object mountedAssetBundles; public Integer orderWADFileMounted; - public String pluginInfoApiSemVer; public String shortName; public String subtype; public String supertype; diff --git a/src/main/java/generated/TournamentDTO.java b/src/main/java/generated/TournamentDTO.java index 2f678141..8d951042 100644 --- a/src/main/java/generated/TournamentDTO.java +++ b/src/main/java/generated/TournamentDTO.java @@ -14,6 +14,7 @@ public class TournamentDTO { public Long id; public Boolean lastThemeOfSeason; public Integer maxSub; + public Integer minGames; public String nameLocKey; public String nameLocKeySecondary; public List phases; diff --git a/src/main/java/generated/UriMap.java b/src/main/java/generated/UriMap.java index eeeb99b3..bf71a0c2 100644 --- a/src/main/java/generated/UriMap.java +++ b/src/main/java/generated/UriMap.java @@ -83,10 +83,12 @@ public class UriMap { toClass.put("\\/lol-champ-select\\/v1\\/grid-champions\\/[^/]+", LolChampSelectChampGridChampion.class); toClass.put("\\/lol-champ-select\\/v1\\/pickable-champion-ids", Integer[].class); toClass.put("\\/lol-champ-select\\/v1\\/pickable-skins", LolChampSelectChampSelectPickableSkins.class); + toClass.put("\\/lol-champ-select\\/v1\\/pin-drop-notification", LolChampSelectChampSelectPinDropNotification.class); toClass.put("\\/lol-champ-select\\/v1\\/session", LolChampSelectChampSelectSession.class); toClass.put("\\/lol-champ-select\\/v1\\/session\\/timer", LolChampSelectChampSelectTimer.class); toClass.put("\\/lol-champ-select\\/v1\\/session\\/trades", LolChampSelectChampSelectTradeContract[].class); toClass.put("\\/lol-champ-select\\/v1\\/session\\/trades\\/[^/]+", LolChampSelectChampSelectTradeContract.class); + toClass.put("\\/lol-champ-select\\/v1\\/sfx-notifications", LolChampSelectSfxNotification[].class); toClass.put("\\/lol-champ-select\\/v1\\/team-boost", LolChampSelectTeamBoost.class); toClass.put("\\/lol-champions\\/v1\\/inventories\\/[^/]+\\/champions", LolChampionsCollectionsChampion[].class); toClass.put("\\/lol-champions\\/v1\\/inventories\\/[^/]+\\/champions-minimal", LolChampionsCollectionsChampionMinimal[].class); @@ -450,9 +452,6 @@ public class UriMap { toClass.put("\\/lol-replays\\/v1\\/metadata\\/[^/]+", LolReplaysReplayMetadata.class); toClass.put("\\/lol-replays\\/v1\\/rofls\\/path", String.class); toClass.put("\\/lol-replays\\/v1\\/rofls\\/path\\/default", String.class); - toClass.put("\\/lol-revivals\\/v1\\/challenges-progress", LolRevivalsChallengesProgress.class); - toClass.put("\\/lol-revivals\\/v1\\/daily-play-progress", LolRevivalsDailyPlayProgress.class); - toClass.put("\\/lol-revivals\\/v1\\/eligibility", LolRevivalsEligibility.class); toClass.put("\\/lol-rms\\/v1\\/champion-mastery-leaveup-update", LolRiotMessagingServiceChampionMasteryLevelUp[].class); toClass.put("\\/lol-rso-auth\\/v1\\/auth-hints\\/hint", LolRsoAuthAuthHint.class); toClass.put("\\/lol-rso-auth\\/v1\\/authorization", LolRsoAuthAuthorization.class); @@ -474,7 +473,7 @@ public class UriMap { toClass.put("\\/lol-simple-dialog-messages\\/v1\\/messages", LolSimpleDialogMessagesMessage[].class); toClass.put("\\/lol-spectator\\/v1\\/spectate", LolSpectatorSpectateGameInfo.class); toClass.put("\\/lol-statstones\\/v1\\/eog-notifications", Object[].class); - toClass.put("\\/lol-statstones\\/v1\\/favorite-champion-statstones\\/[^/]+", String[].class); + toClass.put("\\/lol-statstones\\/v1\\/featured-champion-statstones\\/[^/]+", LolStatstonesStatstone[].class); toClass.put("\\/lol-statstones\\/v1\\/profile-summary\\/[^/]+", LolStatstonesProfileStatstoneSummary[].class); toClass.put("\\/lol-statstones\\/v1\\/statstones-enabled-queue-ids", Integer[].class); toClass.put("\\/lol-statstones\\/v1\\/vignette-notifications", Object[].class); @@ -502,6 +501,7 @@ public class UriMap { toClass.put("\\/lol-summoner\\/v1\\/current-summoner\\/jwt", String.class); toClass.put("\\/lol-summoner\\/v1\\/current-summoner\\/rerollPoints", LolSummonerSummonerRerollPoints.class); toClass.put("\\/lol-summoner\\/v1\\/current-summoner\\/summoner-profile", Object.class); + toClass.put("\\/lol-summoner\\/v1\\/status", LolSummonerStatus.class); toClass.put("\\/lol-summoner\\/v1\\/summoner-profile", Object.class); toClass.put("\\/lol-summoner\\/v1\\/summoners", LolSummonerSummoner.class); toClass.put("\\/lol-summoner\\/v1\\/summoners-by-puuid-cached\\/[^/]+", LolSummonerSummoner.class); @@ -516,10 +516,10 @@ public class UriMap { toClass.put("\\/lol-tft\\/v1\\/tft\\/orb", LolMissionsTftOrb.class); toClass.put("\\/lol-tft\\/v1\\/tft\\/pending-tft-games-count", Integer.class); toClass.put("\\/lol-tft\\/v1\\/tft\\/weekly-missions", LolMissionsTftWeeklyMissions.class); + toClass.put("\\/lol-tft\\/v2\\/tft\\/battlepass", LolMissionsTftPaidBattlepass.class); toClass.put("\\/lol-token-upsell\\/v1\\/all", LolWorldsTokenCardTokenUpsell[].class); toClass.put("\\/lol-trophies\\/v1\\/current-summoner\\/trophies\\/profile", LolTrophiesTrophyProfileData.class); toClass.put("\\/lol-trophies\\/v1\\/players\\/[^/]+\\/trophies\\/profile", LolTrophiesTrophyProfileData.class); - toClass.put("\\/patcher\\/v1\\/executable-version", String.class); toClass.put("\\/patcher\\/v1\\/notifications", PatcherNotification[].class); toClass.put("\\/patcher\\/v1\\/p2p\\/status", PatcherP2PStatus.class); toClass.put("\\/patcher\\/v1\\/products", String[].class); @@ -558,6 +558,7 @@ public class UriMap { toClass.put("\\/riot-messaging-service\\/v1\\/message\\/[^/]+\\/[^/]+\\/[^/]+", RmsMessage.class); toClass.put("\\/riot-messaging-service\\/v1\\/message\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+", RmsMessage.class); toClass.put("\\/riot-messaging-service\\/v1\\/message\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+", RmsMessage.class); + toClass.put("\\/riot-messaging-service\\/v1\\/message\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+\\/[^/]+", RmsMessage.class); toClass.put("\\/riot-messaging-service\\/v1\\/session", RiotMessagingServiceSession.class); toClass.put("\\/riot-messaging-service\\/v1\\/state", RiotMessagingServiceState.class); toClass.put("\\/riotclient\\/affinity", Object.class); @@ -572,7 +573,7 @@ public class UriMap { toClass.put("\\/riotclient\\/trace", Object.class); toClass.put("\\/riotclient\\/ux-crash-count", Integer.class); toClass.put("\\/riotclient\\/ux-state", String.class); - toClass.put("\\/riotclient\\/v1\\/bugsplat\\/platform-id", String.class); + toClass.put("\\/riotclient\\/v1\\/crash-reporting\\/environment", CrashReportingEnvironment.class); toClass.put("\\/riotclient\\/zoom-scale", Double.class); toClass.put("\\/sanitizer\\/v1\\/status", SanitizerSanitizerStatus.class); toClass.put("\\/swagger\\/v1\\/api-docs", Object.class); diff --git a/src/main/java/generated/live/AbilityResource.java b/src/main/java/generated/live/AbilityResource.java new file mode 100644 index 00000000..5641624c --- /dev/null +++ b/src/main/java/generated/live/AbilityResource.java @@ -0,0 +1,38 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum AbilityResource { + + @SerializedName("MANA") + MANA, + @SerializedName("ENERGY") + ENERGY, + @SerializedName("NONE") + NONE, + @SerializedName("SHIELD") + SHIELD, + @SerializedName("BATTLEFURY") + BATTLEFURY, + @SerializedName("DRAGONFURY") + DRAGONFURY, + @SerializedName("RAGE") + RAGE, + @SerializedName("HEAT") + HEAT, + @SerializedName("GNARFURY") + GNARFURY, + @SerializedName("FEROCITY") + FEROCITY, + @SerializedName("BLOODWELL") + BLOODWELL, + @SerializedName("WIND") + WIND, + @SerializedName("AMMO") + AMMO, + @SerializedName("OTHER") + OTHER, + @SerializedName("MAX") + MAX + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingAsyncCancelEvent.java b/src/main/java/generated/live/BindingAsyncCancelEvent.java new file mode 100644 index 00000000..e42a1b3f --- /dev/null +++ b/src/main/java/generated/live/BindingAsyncCancelEvent.java @@ -0,0 +1,7 @@ +package generated.live; + +public class BindingAsyncCancelEvent { + + public Integer asyncToken; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingAsyncFailureEvent.java b/src/main/java/generated/live/BindingAsyncFailureEvent.java new file mode 100644 index 00000000..913fa894 --- /dev/null +++ b/src/main/java/generated/live/BindingAsyncFailureEvent.java @@ -0,0 +1,8 @@ +package generated.live; + +public class BindingAsyncFailureEvent { + + public Integer asyncToken; + public String error; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingAsyncState.java b/src/main/java/generated/live/BindingAsyncState.java new file mode 100644 index 00000000..4b31a2df --- /dev/null +++ b/src/main/java/generated/live/BindingAsyncState.java @@ -0,0 +1,20 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum BindingAsyncState { + + @SerializedName("None") + NONE, + @SerializedName("Running") + RUNNING, + @SerializedName("Cancelling") + CANCELLING, + @SerializedName("Cancelled") + CANCELLED, + @SerializedName("Succeeded") + SUCCEEDED, + @SerializedName("Failed") + FAILED + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingCallbackEvent.java b/src/main/java/generated/live/BindingCallbackEvent.java new file mode 100644 index 00000000..a741d024 --- /dev/null +++ b/src/main/java/generated/live/BindingCallbackEvent.java @@ -0,0 +1,10 @@ +package generated.live; + +import java.util.List; + +public class BindingCallbackEvent { + + public Integer id; + public List parameters; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullApiHelp.java b/src/main/java/generated/live/BindingFullApiHelp.java new file mode 100644 index 00000000..684b62d7 --- /dev/null +++ b/src/main/java/generated/live/BindingFullApiHelp.java @@ -0,0 +1,11 @@ +package generated.live; + +import java.util.List; + +public class BindingFullApiHelp { + + public List events; + public List functions; + public List types; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullArgumentHelp.java b/src/main/java/generated/live/BindingFullArgumentHelp.java new file mode 100644 index 00000000..d9e704f0 --- /dev/null +++ b/src/main/java/generated/live/BindingFullArgumentHelp.java @@ -0,0 +1,10 @@ +package generated.live; + +public class BindingFullArgumentHelp { + + public String description; + public String name; + public Boolean optional; + public BindingFullTypeIdentifier type; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullEnumValueHelp.java b/src/main/java/generated/live/BindingFullEnumValueHelp.java new file mode 100644 index 00000000..af77cbb1 --- /dev/null +++ b/src/main/java/generated/live/BindingFullEnumValueHelp.java @@ -0,0 +1,9 @@ +package generated.live; + +public class BindingFullEnumValueHelp { + + public String description; + public String name; + public Integer value; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullEventHelp.java b/src/main/java/generated/live/BindingFullEventHelp.java new file mode 100644 index 00000000..4cf0de0a --- /dev/null +++ b/src/main/java/generated/live/BindingFullEventHelp.java @@ -0,0 +1,13 @@ +package generated.live; + +import java.util.List; + +public class BindingFullEventHelp { + + public String description; + public String name; + public String nameSpace; + public List tags; + public BindingFullTypeIdentifier type; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullFieldHelp.java b/src/main/java/generated/live/BindingFullFieldHelp.java new file mode 100644 index 00000000..b218d47b --- /dev/null +++ b/src/main/java/generated/live/BindingFullFieldHelp.java @@ -0,0 +1,11 @@ +package generated.live; + +public class BindingFullFieldHelp { + + public String description; + public String name; + public Integer offset; + public Boolean optional; + public BindingFullTypeIdentifier type; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullFunctionHelp.java b/src/main/java/generated/live/BindingFullFunctionHelp.java new file mode 100644 index 00000000..6e0dae9b --- /dev/null +++ b/src/main/java/generated/live/BindingFullFunctionHelp.java @@ -0,0 +1,17 @@ +package generated.live; + +import java.util.List; + +public class BindingFullFunctionHelp { + + public List arguments; + public String async; + public String description; + public String help; + public String name; + public String nameSpace; + public BindingFullTypeIdentifier returns; + public List tags; + public Boolean threadSafe; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullTypeHelp.java b/src/main/java/generated/live/BindingFullTypeHelp.java new file mode 100644 index 00000000..2c2ea577 --- /dev/null +++ b/src/main/java/generated/live/BindingFullTypeHelp.java @@ -0,0 +1,15 @@ +package generated.live; + +import java.util.List; + +public class BindingFullTypeHelp { + + public String description; + public List fields; + public String name; + public String nameSpace; + public Integer size; + public List tags; + public List values; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingFullTypeIdentifier.java b/src/main/java/generated/live/BindingFullTypeIdentifier.java new file mode 100644 index 00000000..58c0d8ea --- /dev/null +++ b/src/main/java/generated/live/BindingFullTypeIdentifier.java @@ -0,0 +1,8 @@ +package generated.live; + +public class BindingFullTypeIdentifier { + + public String elementType; + public String type; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingGenericAsyncEvent.java b/src/main/java/generated/live/BindingGenericAsyncEvent.java new file mode 100644 index 00000000..9b8eb6e8 --- /dev/null +++ b/src/main/java/generated/live/BindingGenericAsyncEvent.java @@ -0,0 +1,8 @@ +package generated.live; + +public class BindingGenericAsyncEvent { + + public Integer asyncToken; + public Object data; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingGenericEvent.java b/src/main/java/generated/live/BindingGenericEvent.java new file mode 100644 index 00000000..f53b3f2f --- /dev/null +++ b/src/main/java/generated/live/BindingGenericEvent.java @@ -0,0 +1,7 @@ +package generated.live; + +public class BindingGenericEvent { + + public Object data; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/BindingHelpFormat.java b/src/main/java/generated/live/BindingHelpFormat.java new file mode 100644 index 00000000..d6f5ef51 --- /dev/null +++ b/src/main/java/generated/live/BindingHelpFormat.java @@ -0,0 +1,12 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum BindingHelpFormat { + + @SerializedName("Full") + FULL, + @SerializedName("Epytext") + EPYTEXT + +} \ No newline at end of file diff --git a/src/main/java/generated/live/Color.java b/src/main/java/generated/live/Color.java new file mode 100644 index 00000000..00f419b8 --- /dev/null +++ b/src/main/java/generated/live/Color.java @@ -0,0 +1,10 @@ +package generated.live; + +public class Color { + + public Integer a; + public Integer b; + public Integer g; + public Integer r; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/RemotingHelpFormat.java b/src/main/java/generated/live/RemotingHelpFormat.java new file mode 100644 index 00000000..c9f4b99a --- /dev/null +++ b/src/main/java/generated/live/RemotingHelpFormat.java @@ -0,0 +1,16 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum RemotingHelpFormat { + + @SerializedName("Full") + FULL, + @SerializedName("Epytext") + EPYTEXT, + @SerializedName("Brief") + BRIEF, + @SerializedName("Console") + CONSOLE + +} \ No newline at end of file diff --git a/src/main/java/generated/live/RemotingPrivilege.java b/src/main/java/generated/live/RemotingPrivilege.java new file mode 100644 index 00000000..25e2481e --- /dev/null +++ b/src/main/java/generated/live/RemotingPrivilege.java @@ -0,0 +1,16 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum RemotingPrivilege { + + @SerializedName("None") + NONE, + @SerializedName("User") + USER, + @SerializedName("Admin") + ADMIN, + @SerializedName("Local") + LOCAL + +} \ No newline at end of file diff --git a/src/main/java/generated/live/RemotingSerializedFormat.java b/src/main/java/generated/live/RemotingSerializedFormat.java new file mode 100644 index 00000000..d91ffbd1 --- /dev/null +++ b/src/main/java/generated/live/RemotingSerializedFormat.java @@ -0,0 +1,14 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum RemotingSerializedFormat { + + @SerializedName("JSON") + JSON, + @SerializedName("YAML") + YAML, + @SerializedName("MsgPack") + MSGPACK + +} \ No newline at end of file diff --git a/src/main/java/generated/live/TeamID.java b/src/main/java/generated/live/TeamID.java new file mode 100644 index 00000000..9b6cf2cd --- /dev/null +++ b/src/main/java/generated/live/TeamID.java @@ -0,0 +1,18 @@ +package generated.live; + +import com.google.gson.annotations.SerializedName; + +public enum TeamID { + + @SerializedName("ALL") + ALL, + @SerializedName("UNKNOWN") + UNKNOWN, + @SerializedName("ORDER") + ORDER, + @SerializedName("CHAOS") + CHAOS, + @SerializedName("NEUTRAL") + NEUTRAL + +} \ No newline at end of file diff --git a/src/main/java/generated/live/Vector2f.java b/src/main/java/generated/live/Vector2f.java new file mode 100644 index 00000000..49b95744 --- /dev/null +++ b/src/main/java/generated/live/Vector2f.java @@ -0,0 +1,8 @@ +package generated.live; + +public class Vector2f { + + public Double x; + public Double y; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/Vector3f.java b/src/main/java/generated/live/Vector3f.java new file mode 100644 index 00000000..5e7ddbed --- /dev/null +++ b/src/main/java/generated/live/Vector3f.java @@ -0,0 +1,9 @@ +package generated.live; + +public class Vector3f { + + public Double x; + public Double y; + public Double z; + +} \ No newline at end of file diff --git a/src/main/java/generated/live/Vector4f.java b/src/main/java/generated/live/Vector4f.java new file mode 100644 index 00000000..8f3e436f --- /dev/null +++ b/src/main/java/generated/live/Vector4f.java @@ -0,0 +1,10 @@ +package generated.live; + +public class Vector4f { + + public Double w; + public Double x; + public Double y; + public Double z; + +} \ No newline at end of file