com.github.twitch4j.tmi.domain.BadgeSets Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitch4j-messaginginterface Show documentation
Show all versions of twitch4j-messaginginterface Show documentation
Twitch Message Interface API dependency
package com.github.twitch4j.tmi.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import java.util.Map;
import java.util.Optional;
@Data
@Setter(AccessLevel.PRIVATE)
public class BadgeSets {
@JsonProperty("badge_sets")
private Map badgesByName;
public Optional getSubscriberBadgeSet() {
return Optional.ofNullable(badgesByName.get("subscriber"));
}
}