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

com.github.twitch4j.helix.domain.SentChatMessageWrapper 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 SentChatMessageWrapper {

    /**
     * Contains a single object with metadata about the sent message.
     */
    private List data;

    /**
     * @return metadata about the sent message
     */
    public SentChatMessage get() {
        if (data == null || data.isEmpty()) return null; // should never happen
        return data.get(0);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy