-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/java/discord4j/discordjson/json/BulkBanRequest.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,25 @@ | ||
package discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import discord4j.discordjson.Id; | ||
import discord4j.discordjson.possible.Possible; | ||
import java.util.List; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableBulkBanRequest.class) | ||
@JsonDeserialize(as = ImmutableBulkBanRequest.class) | ||
public interface BulkBanRequest { | ||
|
||
static ImmutableBulkBanRequest.Builder builder() { | ||
return ImmutableBulkBanRequest.builder(); | ||
} | ||
|
||
@JsonProperty("user_ids") | ||
List<Id> userIds(); | ||
|
||
@JsonProperty("delete_message_seconds") | ||
Possible<Integer> deleteMessageSeconds(); | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/discord4j/discordjson/json/BulkBanResponseData.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,24 @@ | ||
package discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import discord4j.discordjson.Id; | ||
import java.util.List; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableBulkBanResponseData.class) | ||
@JsonDeserialize(as = ImmutableBulkBanResponseData.class) | ||
public interface BulkBanResponseData { | ||
|
||
static ImmutableBulkBanResponseData.Builder builder() { | ||
return ImmutableBulkBanResponseData.builder(); | ||
} | ||
|
||
@JsonProperty("banned_users") | ||
List<Id> bannedUsers(); | ||
|
||
@JsonProperty("failed_users") | ||
List<Id> failedUsers(); | ||
} |