| Modifier and Type | Class and Description |
|---|---|
static class |
SwgohAPIClient.API |
SwgohAPI.BattleField, SwgohAPI.Collection, SwgohAPI.EventField, SwgohAPI.GuildField, SwgohAPI.Language, SwgohAPI.PlayerField, SwgohAPI.SquadRecommendationField, SwgohAPI.UnitsField, SwgohAPI.ZetaRecommendationField| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
getBattles(Boolean enums,
SwgohAPI.Language language,
SwgohAPI.BattleField... fields)
Returns the current list of all campaigns, nodes and battle data.
|
CompletableFuture<String> |
getEvents(Boolean enums,
SwgohAPI.Language language,
SwgohAPI.EventField... fields)
Returns the current event schedule.
|
CompletableFuture<String> |
getGuild(int allyCode,
Boolean enums,
SwgohAPI.Language language,
SwgohAPI.GuildField... fields)
Returns a guild object that contains only basic information for each guild member.
|
CompletableFuture<String> |
getGuildUnits(int allyCode,
boolean includeMods,
Boolean enums,
SwgohAPI.Language language,
SwgohAPI.GuildField... fields)
Returns a guild object that contains a units report for each guild member.
|
CompletableFuture<String> |
getLargeGuild(int allyCode,
Boolean enums,
SwgohAPI.Language language,
SwgohAPI.GuildField... fields)
Returns a guild object that contains a full array of player profiles for each guild member.
|
CompletableFuture<String> |
getPlayers(List<Integer> allyCodes,
Boolean enums,
SwgohAPI.Language language,
SwgohAPI.PlayerField... fields)
Returns a list of player objects which are identified by the given ally code(s).
|
CompletableFuture<RegistrationResponse> |
getRegistrationByAllyCode(List<Integer> allyCodes)
This registry is a single-sourced discord-to-ally code registration for all patreon-tier users.
|
CompletableFuture<RegistrationResponse> |
getRegistrationByDiscordId(List<String> discordIds)
This registry is a single-sourced discord-to-ally code registration for all patreon-tier users.
|
CompletableFuture<String> |
getSquadRecommendations(SwgohAPI.SquadRecommendationField... fields)
Returns the current list of recommended squads, organized around their various uses throughout the game.
|
CompletableFuture<String> |
getSupportData(SwgohAPI.Collection collection,
Map<String,Object> matchCriteria,
Boolean enums,
SwgohAPI.Language language,
String... fields)
Returns game data listings for organizing your tools and understanding relationships between data.
|
CompletableFuture<String> |
getUnits(List<Integer> allyCodes,
boolean includeMods,
Boolean enums,
SwgohAPI.Language language,
SwgohAPI.UnitsField... fields)
Returns a list of unit details organized by unit instead of by player, similar to the swgoh.gg /units API.
|
CompletableFuture<String> |
getZetaRecommendations(SwgohAPI.ZetaRecommendationField... fields)
Returns the current zeta list, rated by their various uses throughout the game.
|
CompletableFuture<RegistrationResponse> |
register(Map<Integer,String> allyCodeDiscordIdMappings)
This registry is a single-sourced discord-to-ally code registration for all patreon-tier users.
|
CompletableFuture<RegistrationResponse> |
unregister(List<Integer> allyCodes,
List<String> discordIds)
This registry is a single-sourced discord-to-ally code registration for all patreon-tier users.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBattles, getBattles, getBattles, getEvents, getEvents, getEvents, getGuild, getGuild, getGuild, getGuildUnits, getGuildUnits, getGuildUnits, getLargeGuild, getLargeGuild, getLargeGuild, getPlayer, getPlayer, getPlayer, getPlayer, getPlayers, getPlayers, getPlayers, getRegistrationByAllyCode, getRegistrationByDiscordId, getSupportData, getSupportData, getSupportData, getSupportData, getSupportData, getSupportData, getSupportData, getUnits, getUnits, getUnits, getUnits, getUnits, getUnits, getUnits, register, unregisterAllyCode, unregisterAllyCodes, unregisterDiscordId, unregisterDiscordIdspublic CompletableFuture<String> getPlayers(List<Integer> allyCodes, Boolean enums, SwgohAPI.Language language, SwgohAPI.PlayerField... fields)
SwgohAPIgetPlayers in interface SwgohAPIallyCodes - Ally code(s) of the players to request.enums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.PlayerFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getGuild(int allyCode, Boolean enums, SwgohAPI.Language language, SwgohAPI.GuildField... fields)
SwgohAPISwgohAPI.getLargeGuild(int, Boolean, Language, GuildField...)
For a guild-wide units report instead of an array of player profiles, see SwgohAPI.getGuildUnits(int, boolean, Boolean, Language, GuildField...)
Cache sync:
Registered user: 6 hours
Verified user: 4 hours
Patreon user: 3 hours
https://api.swgoh.help/swgohgetGuild in interface SwgohAPIallyCode - Ally code of any guild member in guild to request.enums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.GuildFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getLargeGuild(int allyCode, Boolean enums, SwgohAPI.Language language, SwgohAPI.GuildField... fields)
SwgohAPISwgohAPI.getGuild(int, Boolean, Language, GuildField...)
For a guild-wide units report instead of an array of player profiles, see SwgohAPI.getGuildUnits(int, boolean, Boolean, Language, GuildField...)
Cache sync:
Registered user: 6 hours
Verified user: 4 hours
Patreon user: 3 hours
https://api.swgoh.help/swgohgetLargeGuild in interface SwgohAPIallyCode - Ally code of any guild member in guild to request.enums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.GuildFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getGuildUnits(int allyCode, boolean includeMods, Boolean enums, SwgohAPI.Language language, SwgohAPI.GuildField... fields)
SwgohAPISwgohAPI.getGuild(int, Boolean, Language, GuildField...)
For a full array of player profiles in the response, see SwgohAPI.getLargeGuild(int, Boolean, Language, GuildField...)
Cache sync:
Registered user: 6 hours
Verified user: 4 hours
Patreon user: 3 hours
https://api.swgoh.help/swgohgetGuildUnits in interface SwgohAPIallyCode - Ally code of any guild member in guild to request.includeMods - Optionally include unit mods in units report. Note: Large reply objectenums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.GuildFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getUnits(List<Integer> allyCodes, boolean includeMods, Boolean enums, SwgohAPI.Language language, SwgohAPI.UnitsField... fields)
SwgohAPIgetUnits in interface SwgohAPIallyCodes - Ally code(s) of the players to request.includeMods - Optionally include unit-mods in report. Note: Large reply objectenums - Optionally return enumerated items as their string equivalents.language - (in conjunction with mods) Optionally converts mod stat values to text.fields - Optional projection of SwgohAPI.UnitsFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getZetaRecommendations(SwgohAPI.ZetaRecommendationField... fields)
SwgohAPIgetZetaRecommendations in interface SwgohAPIfields - Optional projection of SwgohAPI.ZetaRecommendationFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getSquadRecommendations(SwgohAPI.SquadRecommendationField... fields)
SwgohAPIgetSquadRecommendations in interface SwgohAPIfields - Optional projection of SwgohAPI.SquadRecommendationFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getEvents(Boolean enums, SwgohAPI.Language language, SwgohAPI.EventField... fields)
SwgohAPIgetEvents in interface SwgohAPIenums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.EventFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getBattles(Boolean enums, SwgohAPI.Language language, SwgohAPI.BattleField... fields)
SwgohAPIgetBattles in interface SwgohAPIenums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of SwgohAPI.BattleFields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<String> getSupportData(SwgohAPI.Collection collection, Map<String,Object> matchCriteria, Boolean enums, SwgohAPI.Language language, String... fields)
SwgohAPI$match's body, according to mongodb specifications.
https://docs.mongodb.com/manual/reference/operator/aggregation/match/
Cache sync: on game updates
https://api.swgoh.help/swgohgetSupportData in interface SwgohAPIcollection - Name of the collection to access.matchCriteria - Optionally include match criteria to filter down response.enums - Optionally return enumerated items as their string equivalents.language - Optional language to return translated names. If no language specified, no translations will be applied.fields - Optional projection of fields you want returned. If no fields are specified, all fields will be returned.public CompletableFuture<RegistrationResponse> register(Map<Integer,String> allyCodeDiscordIdMappings)
SwgohAPIpublic CompletableFuture<RegistrationResponse> unregister(List<Integer> allyCodes, List<String> discordIds)
SwgohAPIunregister in interface SwgohAPIallyCodes - List of ally codes to unregisterdiscordIds - List of Discord IDs to unregisterpublic CompletableFuture<RegistrationResponse> getRegistrationByAllyCode(List<Integer> allyCodes)
SwgohAPIgetRegistrationByAllyCode in interface SwgohAPIallyCodes - List of ally codes to searchpublic CompletableFuture<RegistrationResponse> getRegistrationByDiscordId(List<String> discordIds)
SwgohAPIgetRegistrationByDiscordId in interface SwgohAPIdiscordIds - List of discord IDs to searchCopyright © 2018. All rights reserved.