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

com.github.twitch4j.eventsub.events.batched.BatchedDataEvents Maven / Gradle / Ivy

The newest version!
package com.github.twitch4j.eventsub.events.batched;

import com.github.twitch4j.eventsub.events.EnclosedDataEvent;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;
import java.util.stream.Collectors;

@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class BatchedDataEvents extends BatchedEventSubEvents> {

    public List getData() {
        return getEvents().stream().map(EnclosedDataEvent::getData).collect(Collectors.toList());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy