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

com.github.twitch4j.helix.domain.CharityCampaignWrapper Maven / Gradle / Ivy

The newest version!
package com.github.twitch4j.helix.domain;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Optional;

@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CharityCampaignWrapper extends ValueWrapper {

    /**
     * @return the currently running charity campaign, or empty if the broadcaster is not running a charity campaign.
     */
    public Optional getCurrentCampaign() {
        return Optional.ofNullable(this.get());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy