-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Deep Stone Crypt encounter maps (#63)
* First commit * This new branch will be the one with the actual changes * deleted old packages and database related stuff * created new directory for deep stone crypt raid. Added maps for each encounter * fixed units/some integrations tests * Finished setting up the raid-stats command * fixed merge conflicts. Deleted 'generated' directory --------- Co-authored-by: Daniel Villavicencio <danielvillavicencio@Daniels-MBP.attlocal.net>
- Loading branch information
1 parent
4c5b101
commit 5952b9e
Showing
109 changed files
with
1,179 additions
and
1,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
src/main/java/com/danielvm/destiny2bot/annotation/ValidSignature.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 10 additions & 9 deletions
19
src/main/java/com/danielvm/destiny2bot/client/BungieClientWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
package com.danielvm.destiny2bot.client; | ||
|
||
import com.danielvm.destiny2bot.dto.destiny.GenericResponse; | ||
import com.danielvm.destiny2bot.dto.destiny.BungieResponse; | ||
import com.danielvm.destiny2bot.dto.destiny.manifest.ResponseFields; | ||
import com.danielvm.destiny2bot.enums.ManifestEntity; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.cache.annotation.Cacheable; | ||
import org.springframework.stereotype.Service; | ||
import reactor.core.publisher.Mono; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
@Slf4j | ||
public class BungieClientWrapper { | ||
|
||
private final BungieClient bungieClient; | ||
private final BungieClient defaultBungieClient; | ||
|
||
public BungieClientWrapper(BungieClient defaultBungieClient) { | ||
this.defaultBungieClient = defaultBungieClient; | ||
} | ||
|
||
/** | ||
* Wraps the client call to the Manifest with a Cacheable method | ||
* | ||
* @param entityType The entity type (see | ||
* {@link ManifestEntity}) | ||
* @param entityType The entity type (see {@link ManifestEntity}) | ||
* @param hashIdentifier The hash identifier | ||
* @return {@link GenericResponse} of {@link ResponseFields} | ||
* @return {@link BungieResponse} of {@link ResponseFields} | ||
*/ | ||
@Cacheable(cacheNames = "entity", cacheManager = "inMemoryCacheManager") | ||
public Mono<GenericResponse<ResponseFields>> getManifestEntityRx( | ||
public Mono<BungieResponse<ResponseFields>> getManifestEntityRx( | ||
ManifestEntity entityType, String hashIdentifier) { | ||
return bungieClient.getManifestEntityRx(entityType.getId(), hashIdentifier).cache(); | ||
return defaultBungieClient.getManifestEntityRx(entityType.getId(), hashIdentifier).cache(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
src/main/java/com/danielvm/destiny2bot/config/FlywayConfiguration.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.