-
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.
This new branch will be the one with the actual changes
- Loading branch information
Daniel Villavicencio
authored and
Daniel Villavicencio
committed
Feb 15, 2024
1 parent
9f312c2
commit 5cfb937
Showing
45 changed files
with
640 additions
and
639 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
src/main/java/com/danielvm/destiny2bot/controller/RegistrationController.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/main/java/com/danielvm/destiny2bot/controller/TestController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.danielvm.destiny2bot.controller; | ||
|
||
import com.danielvm.destiny2bot.dto.destiny.CharacterRaidStatistics; | ||
import com.danielvm.destiny2bot.dto.discord.Interaction; | ||
import com.danielvm.destiny2bot.dto.discord.InteractionData; | ||
import com.danielvm.destiny2bot.dto.discord.Option; | ||
import com.danielvm.destiny2bot.service.RaidStatsService; | ||
import java.util.List; | ||
import java.util.Map; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import org.springframework.web.service.annotation.GetExchange; | ||
import reactor.core.publisher.Mono; | ||
|
||
@RestController | ||
public class TestController { | ||
|
||
private final RaidStatsService raidStatsService; | ||
|
||
public TestController(RaidStatsService raidStatsService) { | ||
this.raidStatsService = raidStatsService; | ||
} | ||
|
||
@GetExchange("/stats") | ||
public Mono<Map<String, CharacterRaidStatistics>> test() { | ||
return raidStatsService.retrieveRaidStatsForUser(Interaction.builder() | ||
.data(InteractionData.builder() | ||
.options(List.of(new Option("username", 1, "4611686018468622561", null))) | ||
.build()) | ||
.build()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.danielvm.destiny2bot.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class RaidEntry { | ||
|
||
private String raidName; | ||
|
||
private Long instanceId; | ||
|
||
private Integer totalDeaths; | ||
|
||
private Integer totalKills; | ||
|
||
private Double kda; | ||
|
||
private Integer duration; | ||
|
||
private Boolean isCompleted; | ||
|
||
private Boolean isFromBeginning; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/danielvm/destiny2bot/dto/destiny/ActivitiesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.danielvm.destiny2bot.dto.destiny; | ||
|
||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ActivitiesResponse { | ||
|
||
private List<Activity> activities; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/danielvm/destiny2bot/dto/destiny/Activity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.danielvm.destiny2bot.dto.destiny; | ||
|
||
import java.time.ZonedDateTime; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class Activity { | ||
|
||
private ZonedDateTime period; | ||
|
||
private ActivityDetails activityDetails; | ||
|
||
private Map<String, ValueEntry> values; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/danielvm/destiny2bot/dto/destiny/ActivityDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.danielvm.destiny2bot.dto.destiny; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ActivityDetails { | ||
|
||
private Long directorActivityHash; | ||
|
||
private Long instanceId; | ||
|
||
private Integer mode; | ||
} |
Oops, something went wrong.