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

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

There is a newer version: 1.23.0
Show newest version
package com.github.twitch4j.helix.domain;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;

import java.util.List;

@Data
@Setter(AccessLevel.PRIVATE)
public class AdScheduleWrapper {

    /**
     * A list that contains information related to the channel’s ad schedule.
     */
    private List data;

    /**
     * @return information related to the channel’s ad schedule
     */
    public AdSchedule get() {
        if (data == null || data.isEmpty()) return null;
        return data.get(0);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy