Skip to content

Commit

Permalink
Update to client version 9.18 and fix unnecessary slash
Browse files Browse the repository at this point in the history
  • Loading branch information
stirante committed Sep 11, 2019
1 parent deb336d commit 4326f86
Show file tree
Hide file tree
Showing 59 changed files with 506 additions and 49 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.stirante</groupId>
<artifactId>lol-client-java-api</artifactId>
<version>1.1.4</version>
<version>1.1.5</version>

<properties>
<java.version>1.8</java.version>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/stirante/lolclient/ClientApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,11 @@ private <T extends HttpRequestBase> T getConnection(String endpoint, T method, S
throw new IllegalStateException("API not connected!");
}
try {
StringBuilder sb = new StringBuilder("https://127.0.0.1:").append(port).append("/").append(endpoint);
StringBuilder sb = new StringBuilder("https://127.0.0.1:").append(port);
if (!endpoint.startsWith("/")) {
sb.append("/");
}
sb.append(endpoint);
boolean addedParams = false;
for (int i = 0; i < queryParams.length; i += 2) {
if (!addedParams) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package generated;

public class ClientConfigAuthenticatedConnection {

public String authToken;
public Integer connectionId;
public Boolean subscribed;

}
12 changes: 12 additions & 0 deletions src/main/java/generated/ClientConfigConfigNamespaceUpdate.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package generated;

import java.util.List;
import com.google.gson.annotations.SerializedName;

public class ClientConfigConfigNamespaceUpdate {

public List<String> player;
@SerializedName("public")
public List<String> publicField;

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
public class ClientConfigEntitlementsUpdate {

public ClientConfigEntitlements EntitlementsTokenResource;
public ClientConfigEntitlementsUpdateType EntitlementsUpdateType;
public ClientConfigUpdateType UpdateType;

}
6 changes: 5 additions & 1 deletion src/main/java/generated/ClientConfigSession.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package generated;

import java.util.List;

public class ClientConfigSession {

public String patchline;
public List<ClientConfigAuthenticatedConnection> connections;
public Boolean isInternal;
public String patchlineId;
public String productId;
public String version;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.google.gson.annotations.SerializedName;

public enum ClientConfigEntitlementsUpdateType {
public enum ClientConfigUpdateType {

@SerializedName("Create")
CREATE,
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/generated/ClientRequestError.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

public enum ClientRequestError {

@SerializedName("ALREADY_IN_GAME")
ALREADY_IN_GAME,
@SerializedName("ALREADY_MEMBER")
ALREADY_MEMBER,
@SerializedName("ALREADY_INVITED")
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/generated/LolCatalogGameDataItemReference.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package generated;

public class LolCatalogGameDataItemReference {

public String contentId;
public String inventoryType;
public Integer itemId;

}
19 changes: 19 additions & 0 deletions src/main/java/generated/LolCatalogGameDataStatstone.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package generated;

import java.util.List;

public class LolCatalogGameDataStatstone {

public LolCatalogGameDataItemReference boundChampion;
public String category;
public String contentId;
public String description;
public String iconFull;
public Boolean isDuration;
public Boolean isEpic;
public Boolean isRetired;
public Integer itemId;
public List<Integer> milestones;
public String name;

}
10 changes: 10 additions & 0 deletions src/main/java/generated/LolCatalogGameDataStatstoneSet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package generated;

import java.util.List;

public class LolCatalogGameDataStatstoneSet {

public String name;
public List<LolCatalogGameDataStatstone> statstones;

}
1 change: 1 addition & 0 deletions src/main/java/generated/LolChatFriendResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class LolChatFriendResource {

public String availability;
public String basic;
public Integer displayGroupId;
public String gameName;
public String gameTag;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/generated/LolChatLcuSocialConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public class LolChatLcuSocialConfig {
public Long QueueJobGraceSeconds;
public Boolean ReplaceRichMessages;
public Boolean SilenceChatWhileInGame;
public Boolean gameNameTaglineEnabled;

}
6 changes: 6 additions & 0 deletions src/main/java/generated/LolChatMultiGamePresence.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

public class LolChatMultiGamePresence {

public String actor;
public String basic;
public String details;
public String game_name;
public String game_tag;
public String location;
public String msg;
public String name;
public String patchline;
public String pid;
public String platform;
@SerializedName("private")
public String privateField;
public String privateJwt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ public class LolChatMultiGamePresenceSharedPayload {
public String actor;
public String details;
public String location;
public String patchline;
public String platform;
public String product;
public Long time;

Expand Down
10 changes: 10 additions & 0 deletions src/main/java/generated/LolChatTranslateRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package generated;

import java.util.List;

public class LolChatTranslateRequest {

public List<String> keys;
public String product_id;

}
9 changes: 9 additions & 0 deletions src/main/java/generated/LolChatTranslateResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package generated;

import java.util.List;

public class LolChatTranslateResponse {

public List<LolChatTranslateResult> results;

}
10 changes: 10 additions & 0 deletions src/main/java/generated/LolChatTranslateResult.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package generated;

public class LolChatTranslateResult {

public Boolean found;
public String key;
public String product_id;
public String value;

}
1 change: 1 addition & 0 deletions src/main/java/generated/LolChatUserResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class LolChatUserResource {

public String availability;
public String basic;
public String gameName;
public String gameTag;
public Integer icon;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/generated/LolClashRosterNotifyReason.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public enum LolClashRosterNotifyReason {
BRACKET_ROSTER_REMOVED,
@SerializedName("BRACKET_ROSTER_REPLACED")
BRACKET_ROSTER_REPLACED,
@SerializedName("CANNOT_FIND_MATCH")
CANNOT_FIND_MATCH,
@SerializedName("BANNED_SMURF")
BANNED_SMURF,
@SerializedName("BANNED_SMURF_TEAMMATE")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

public class LolGameQueuesQueueCustomGameSubcategory {

public List<LolGameQueuesQueueCustomGameSpectatorPolicy> customSpectatorPolicies;
public String gameMode;
public Integer mapId;
public Integer maxLevel;
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/generated/LolLobbyGameflowAvailability.java

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/generated/LolRiotclientUpgraderConfigType.java

This file was deleted.

7 changes: 7 additions & 0 deletions src/main/java/generated/LolStatstonesCatalogBundle.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package generated;

public class LolStatstonesCatalogBundle {

public LolStatstonesCatalogItemDetails item;

}
8 changes: 8 additions & 0 deletions src/main/java/generated/LolStatstonesCatalogBundlePrice.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package generated;

public class LolStatstonesCatalogBundlePrice {

public Integer cost;
public String currency;

}
14 changes: 14 additions & 0 deletions src/main/java/generated/LolStatstonesCatalogItemDetails.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package generated;

import java.util.List;

public class LolStatstonesCatalogItemDetails {

public String inventoryType;
public Integer itemId;
public String itemInstanceId;
public List<LolStatstonesCatalogBundlePrice> prices;
public String releaseDate;
public String subInventoryType;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package generated;

public class LolStatstonesChampionStatstoneSetSummary {

public String name;
public Integer stonesAvailable;
public Integer stonesIlluminated;
public Integer stonesOwned;

}
13 changes: 13 additions & 0 deletions src/main/java/generated/LolStatstonesChampionStatstoneSummary.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package generated;

import java.util.List;

public class LolStatstonesChampionStatstoneSummary {

public Integer championId;
public List<LolStatstonesChampionStatstoneSetSummary> sets;
public Integer stonesAvailable;
public Integer stonesIlluminated;
public Integer stonesOwned;

}
9 changes: 9 additions & 0 deletions src/main/java/generated/LolStatstonesCollectionsChampion.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package generated;

public class LolStatstonesCollectionsChampion {

public Integer id;
public String name;
public String squarePortraitPath;

}
12 changes: 12 additions & 0 deletions src/main/java/generated/LolStatstonesEogNotificationEnvelope.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package generated;

import java.util.List;

public class LolStatstonesEogNotificationEnvelope {

public List<LolStatstonesPersonalBestNotification> othersPersonalBests;
public List<LolStatstonesMilestoneProgressNotification> selfMilestoneProgress;
public List<LolStatstonesPersonalBestNotification> selfPersonalBests;
public List<LolStatstonesStatstoneProgress> selfStatstoneProgress;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package generated;

public class LolStatstonesGameDataItemReference {

public String contentId;
public String inventoryType;
public Integer itemId;

}
Loading

0 comments on commit 4326f86

Please sign in to comment.