All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.twitch4j.tmi.domain.BadgeSets Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
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"));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy