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

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

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

import lombok.Data;

/**
 * Data for creating Stream Markers. The {@code userId} of the streamer on whose
 * stream to create the marker is required; the {@code description} is optional.
 */
@Data
public class Highlight {

    /**
     * ID of the broadcaster to create a marker for
     */
    private final String userId;

    /**
     * Optional description to include with the marker
     */
    private final String description;

    public Highlight(String userId) {
        this(userId, "");
    }

    public Highlight(String userId, String description) {
        this.userId = userId;
        if(description == null)
            this.description = "";
        else
            this.description = description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy