com.github.twitch4j.pubsub.domain.Leaderboard Maven / Gradle / Ivy
The newest version!
package com.github.twitch4j.pubsub.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.github.twitch4j.common.util.NanoInstantDeserializer;
import lombok.Data;
import lombok.Setter;
import java.time.Instant;
import java.util.List;
@Data
@Setter(onMethod_ = { @Deprecated })
public class Leaderboard {
private Identifier identifier;
private List top;
private Context entryContext;
private Event event;
@Data
@Setter(onMethod_ = { @Deprecated })
public static class Identifier {
private String domain;
private String groupingKey;
private String timeAggregationUnit;
private String timeBucket;
}
@Data
@Setter(onMethod_ = { @Deprecated })
public static class Entry {
private Integer rank;
private Long score;
private String entryKey;
}
@Data
@Setter(onMethod_ = { @Deprecated })
public static class Context {
private Entry entry;
private List context;
}
@Data
@Setter(onMethod_ = { @Deprecated })
public static class Event {
private String domain;
private String id;
@JsonDeserialize(using = NanoInstantDeserializer.class)
private Instant timeOfEvent;
private String groupingKey;
private String entryKey;
private Long eventValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy