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

com.github.twitch4j.kraken.domain.KrakenTeam Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package com.github.twitch4j.kraken.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.Instant;
import java.util.Date;
import java.util.List;

/**
 * Model representing a team.
 * @deprecated Kraken is deprecated and has been shut down on Febuary 28, 2022.
 *             More details about the deprecation are available here.
 */
@Data
@Deprecated
public class KrakenTeam {

    @JsonProperty("_id")
    private long id;

    private String name;

    private String displayName;

    private String info;

    private String logo;

    private String background;

    private String banner;

    @JsonProperty("created_at")
    private Instant createdAtInstant;

    @JsonProperty("updated_at")
    private Instant updatedAtInstant;

    private List users;

    /**
     * @return the timestamp of when the team was created
     * @deprecated in favor of getCreatedAtInstant()
     */
    @JsonIgnore
    @Deprecated
    public Date getCreatedAt() {
        return Date.from(createdAtInstant);
    }

    /**
     * @return the timestamp of when the team was last updated
     * @deprecated in favor of getUpdatedAtInstant()
     */
    @JsonIgnore
    @Deprecated
    public Date getUpdatedAt() {
        return Date.from(updatedAtInstant);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy