com.github.twitch4j.helix.domain.HearthstoneMetadata Maven / Gradle / Ivy
package com.github.twitch4j.helix.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
/**
* Hearthstone Metadata
*/
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class HearthstoneMetadata {
/** The Broadcaster */
@NonNull
private HearthstonePlayer broadcaster;
/** The Opponent */
@NonNull
private HearthstonePlayer opponent;
/**
* Hearthstone Player
*/
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
static class HearthstonePlayer {
/** Hero Type */
private HearthstoneHero hero;
}
/**
* Hearthstone Hero
*/
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
static class HearthstoneHero {
/** Name of the Hearthstone hero. */
@NonNull
private String name;
/** Class of the Hearthstone hero. */
@NonNull
@JsonProperty("class")
private String className;
/** Type of Hearthstone hero. */
@NonNull
private String type;
}
}