-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only parse used data to reduce errors when API changes (#782)
* Only parse actually used data * Fix merge and up to date * Fix test
- Loading branch information
Showing
148 changed files
with
197 additions
and
3,857 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
28 changes: 0 additions & 28 deletions
28
miner/src/main/java/fr/rakambda/channelpointsminer/miner/api/discord/data/Image.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
8 changes: 0 additions & 8 deletions
8
...nnelpointsminer/miner/api/gql/gql/data/claimcommunitypoints/ClaimCommunityPointsData.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,23 +1,15 @@ | ||
package fr.rakambda.channelpointsminer.miner.api.gql.gql.data.claimcommunitypoints; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import fr.rakambda.channelpointsminer.miner.api.gql.gql.data.types.ClaimCommunityPointsPayload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@EqualsAndHashCode | ||
@ToString | ||
public class ClaimCommunityPointsData{ | ||
@JsonProperty("claimCommunityPoints") | ||
@NotNull | ||
private ClaimCommunityPointsPayload claimCommunityPoints; | ||
} |
8 changes: 0 additions & 8 deletions
8
...miner/miner/api/gql/gql/data/dropspageclaimdroprewards/DropsPageClaimDropRewardsData.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,23 +1,15 @@ | ||
package fr.rakambda.channelpointsminer.miner.api.gql.gql.data.dropspageclaimdroprewards; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import fr.rakambda.channelpointsminer.miner.api.gql.gql.data.types.ClaimDropRewardsPayload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@EqualsAndHashCode | ||
@ToString | ||
public class DropsPageClaimDropRewardsData{ | ||
@JsonProperty("claimDropRewards") | ||
@NotNull | ||
private ClaimDropRewardsPayload claimDropRewards; | ||
} |
8 changes: 0 additions & 8 deletions
8
...ain/java/fr/rakambda/channelpointsminer/miner/api/gql/gql/data/joinraid/JoinRaidData.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,23 +1,15 @@ | ||
package fr.rakambda.channelpointsminer.miner.api.gql.gql.data.joinraid; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import fr.rakambda.channelpointsminer.miner.api.gql.gql.data.types.JoinRaidPayload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@EqualsAndHashCode | ||
@ToString | ||
public class JoinRaidData{ | ||
@JsonProperty("joinRaid") | ||
@NotNull | ||
private JoinRaidPayload joinRaid; | ||
} |
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
27 changes: 0 additions & 27 deletions
27
...n/java/fr/rakambda/channelpointsminer/miner/api/gql/gql/data/types/ChatRoomBanStatus.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,44 +1,17 @@ | ||
package fr.rakambda.channelpointsminer.miner.api.gql.gql.data.types; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import fr.rakambda.channelpointsminer.miner.util.json.ISO8601ZonedDateTimeDeserializer; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
import java.time.ZonedDateTime; | ||
|
||
@JsonTypeName("ChatRoomBanStatus") | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString | ||
public class ChatRoomBanStatus extends GQLType{ | ||
@JsonProperty("bannedUser") | ||
@NotNull | ||
private User bannedUser; | ||
@JsonProperty("createdAt") | ||
@JsonDeserialize(using = ISO8601ZonedDateTimeDeserializer.class) | ||
@NotNull | ||
private ZonedDateTime createdAt; | ||
@JsonProperty("expiresAt") | ||
@JsonDeserialize(using = ISO8601ZonedDateTimeDeserializer.class) | ||
@Nullable | ||
private ZonedDateTime expiresAt; | ||
@JsonProperty("isPermanent") | ||
private boolean permanent; | ||
@JsonProperty("moderator") | ||
@Nullable | ||
private User moderator; | ||
@JsonProperty("reason") | ||
@Nullable | ||
private String reason; | ||
} |
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
24 changes: 0 additions & 24 deletions
24
...r/rakambda/channelpointsminer/miner/api/gql/gql/data/types/ClaimCommunityPointsError.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.