Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eventsub): add badges to ChannelChatNotificationEvent (#883)
- Loading branch information
Showing
3 changed files
with
156 additions
and
94 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
36 changes: 36 additions & 0 deletions
36
eventsub-common/src/main/java/com/github/twitch4j/eventsub/domain/chat/Badge.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,36 @@ | ||
package com.github.twitch4j.eventsub.domain.chat; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.Data; | ||
import lombok.Setter; | ||
|
||
@Data | ||
@Setter(AccessLevel.PRIVATE) | ||
public class Badge { | ||
|
||
/** | ||
* An ID that identifies this set of chat badges. | ||
* <p> | ||
* For example: "bits", "subscriber", "vip", "moderator", "broadcaster", "partner", "ambassador", "turbo", | ||
* "hype-train", "no_audio", "no_video", "sub-gifter", "sub-gift-leader", "premium" (i.e., twitch prime) | ||
*/ | ||
private String setId; | ||
|
||
/** | ||
* An ID that identifies this version of the badge. | ||
* The ID can be any value. | ||
* <p> | ||
* For example, for Bits, the ID is the Bits tier level, | ||
* but for World of Warcraft, it could be Alliance or Horde. | ||
*/ | ||
private String id; | ||
|
||
/** | ||
* Contains metadata related to the chat badges in the badges tag. | ||
* <p> | ||
* Currently, this tag contains metadata only for subscriber badges, | ||
* to indicate the number of months the user has been a subscriber. | ||
*/ | ||
private String info; | ||
|
||
} |
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