-
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.
* feat: change EmojiCreateRequest and EmojiModifyRequest hierarchy to add Application-related classes * feat: add new ApplicationEmojiDataList class
- Loading branch information
Showing
7 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/discord4j/discordjson/json/ApplicationEmojiCreateRequest.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 discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableApplicationEmojiCreateRequest.class) | ||
@JsonDeserialize(as = ImmutableApplicationEmojiCreateRequest.class) | ||
public interface ApplicationEmojiCreateRequest extends EmojiCreateRequest { | ||
|
||
static ImmutableApplicationEmojiCreateRequest.Builder builder() { | ||
return ImmutableApplicationEmojiCreateRequest.builder(); | ||
} | ||
|
||
// Note: this class is empty to allow future modifications without having to create it | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/discord4j/discordjson/json/ApplicationEmojiDataList.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,20 @@ | ||
package discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value; | ||
|
||
import java.util.List; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableApplicationEmojiDataList.class) | ||
@JsonDeserialize(as = ImmutableApplicationEmojiDataList.class) | ||
public interface ApplicationEmojiDataList { | ||
|
||
static ImmutableApplicationEmojiDataList.Builder builder() { | ||
return ImmutableApplicationEmojiDataList.builder(); | ||
} | ||
|
||
List<EmojiData> items(); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/discord4j/discordjson/json/ApplicationEmojiModifyRequest.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,20 @@ | ||
package discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import discord4j.discordjson.possible.Possible; | ||
import org.immutables.value.Value; | ||
|
||
import java.util.List; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableApplicationEmojiModifyRequest.class) | ||
@JsonDeserialize(as = ImmutableApplicationEmojiModifyRequest.class) | ||
public interface ApplicationEmojiModifyRequest extends EmojiModifyRequest { | ||
|
||
static ImmutableApplicationEmojiModifyRequest.Builder builder() { | ||
return ImmutableApplicationEmojiModifyRequest.builder(); | ||
} | ||
|
||
// Note: this class is empty to allow future modifications without having to create it | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/discord4j/discordjson/json/EmojiCreateRequest.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 discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableEmojiCreateRequest.class) | ||
@JsonDeserialize(as = ImmutableEmojiCreateRequest.class) | ||
public interface EmojiCreateRequest { | ||
|
||
static ImmutableEmojiCreateRequest.Builder builder() { | ||
return ImmutableEmojiCreateRequest.builder(); | ||
} | ||
|
||
String name(); | ||
String image(); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/discord4j/discordjson/json/EmojiModifyRequest.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 discord4j.discordjson.json; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import discord4j.discordjson.possible.Possible; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableEmojiModifyRequest.class) | ||
@JsonDeserialize(as = ImmutableEmojiModifyRequest.class) | ||
public interface EmojiModifyRequest { | ||
|
||
static ImmutableEmojiModifyRequest.Builder builder() { | ||
return ImmutableEmojiModifyRequest.builder(); | ||
} | ||
|
||
Possible<String> name(); | ||
|
||
} |
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