Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add helix raids endpoints in open beta (#587)
- Loading branch information
Showing
8 changed files
with
121 additions
and
0 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
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: 27 additions & 0 deletions
27
rest-helix/src/main/java/com/github/twitch4j/helix/domain/RaidRequest.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,27 @@ | ||
package com.github.twitch4j.helix.domain; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AccessLevel; | ||
import lombok.Data; | ||
import lombok.Setter; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.time.Instant; | ||
|
||
@Data | ||
@Setter(AccessLevel.PRIVATE) | ||
public class RaidRequest { | ||
|
||
/** | ||
* The UTC date and time, in RFC3339 format, when the raid request was created. | ||
*/ | ||
private Instant createdAt; | ||
|
||
/** | ||
* Whether the channel being raided contains mature content. | ||
*/ | ||
@Accessors(fluent = true) | ||
@JsonProperty("is_mature") | ||
private Boolean isMature; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
rest-helix/src/main/java/com/github/twitch4j/helix/domain/RaidRequestList.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,18 @@ | ||
package com.github.twitch4j.helix.domain; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Data; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Setter(AccessLevel.PRIVATE) | ||
public class RaidRequestList { | ||
|
||
/** | ||
* A list of raids. The list will contain the single raid that this request created. | ||
*/ | ||
private List<RaidRequest> data; | ||
|
||
} |
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