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

com.github.twitch4j.helix.domain.DropsEntitlementList 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.NoArgsConstructor;
import lombok.Setter;

import java.util.List;
import java.util.Optional;

@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class DropsEntitlementList {

    /**
     * The entitlements
     */
    private List data;

    private HelixPagination pagination;

    /**
     * If present, is the key used to fetch the next page of data.
     * If absent, the current response is the last page of data available.
     *
     * @return the cursor from the pagination object, in an optional wrapper
     * @deprecated in favor of {@link #getPagination()}
     */
    @Deprecated
    public Optional getPaginationCursor() {
        return Optional.ofNullable(pagination).map(HelixPagination::getCursor);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy