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

com.github.twitch4j.helix.domain.HearthstoneMetadata Maven / Gradle / Ivy

The newest version!
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;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy