Skip to content

Commit

Permalink
chore: deprecate kraken api (#535)
Browse files Browse the repository at this point in the history
* chore: Kraken decommission preparation

* chore: remove distributionManagement for relocation

* chore: update deprecation text

* fix: typo in text

Co-authored-by: Philipp Heuer <git@philippheuer.me>
  • Loading branch information
stachu540 and PhilippHeuer committed May 5, 2022
1 parent 8e0c28f commit fd31b90
Show file tree
Hide file tree
Showing 43 changed files with 204 additions and 0 deletions.
Expand Up @@ -19,7 +19,11 @@
* Twitch - Kraken API
* <p>
* Kraken is already deprecated, so we only offer methods which haven't been added to the new helix api yet. Please use the helix api if available.
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*
*/
@Deprecated
public interface TwitchKraken {

/**
Expand Down
Expand Up @@ -24,10 +24,15 @@

import java.util.concurrent.TimeUnit;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Slf4j
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
@Deprecated
public class TwitchKrakenBuilder {

/**
Expand Down Expand Up @@ -95,7 +100,10 @@ public static TwitchKrakenBuilder builder() {
*
* @return TwitchKraken
*/
@Deprecated
public TwitchKraken build() {
log.warn("Kraken is deprecated and has been shut down on Febuary 28, 2022.");
log.warn("More details about the decommission are available here: https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline");
log.debug("Kraken: Initializing Module ...");

// Hystrix
Expand Down
Expand Up @@ -18,7 +18,12 @@
import java.io.InputStream;
import java.nio.charset.StandardCharsets;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Slf4j
@Deprecated
public class TwitchKrakenErrorDecoder implements ErrorDecoder {

// Decoder
Expand Down
Expand Up @@ -5,8 +5,11 @@

/**
* Abstract base for result lists.
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
public abstract class AbstractResultList {

/**
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class ChatBadge {
private String alpha;
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class ChatBadges {
private ChatBadge admin;
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class Emoticon {
private Integer id;
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class EmoticonImages {
private Integer emoticonSet;
Expand Down
Expand Up @@ -6,7 +6,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class EmoticonList {
private List<Emoticon> emoticons;
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class EmoticonSetEntry {
private String code;
Expand Down
Expand Up @@ -8,7 +8,12 @@
import java.util.List;
import java.util.Map;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class EmoticonSetList {

Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenBlock {
private KrakenUser user;
Expand Down
Expand Up @@ -8,7 +8,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@ToString(callSuper = true)
@Setter(AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = true)
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenBlockTransaction {
@JsonProperty("_id")
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenChannel {
@JsonProperty("_id")
Expand Down
Expand Up @@ -6,7 +6,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenClip {
private String slug;
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenCollection {

Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenCollectionItem {

Expand Down
Expand Up @@ -4,7 +4,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@ToString(callSuper = true)
@Setter(AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = true)
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenCollectionMetadata {
@JsonProperty("_id")
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenCollectionThumbnails {
public String large;
Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenCreatedVideo {

Expand Down
Expand Up @@ -4,7 +4,12 @@
import lombok.Data;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenEmoticon {
private Integer id;
Expand Down
Expand Up @@ -7,7 +7,12 @@
import java.util.Map;
import java.util.Set;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenEmoticonSetList {
private Map<String, Set<KrakenEmoticon>> emoticonSets;
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.time.Instant;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
public class KrakenFollow {

Expand Down
Expand Up @@ -8,7 +8,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@ToString(callSuper = true)
@Setter(AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = true)
Expand Down
Expand Up @@ -5,7 +5,12 @@
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class KrakenHost {
Expand Down
Expand Up @@ -7,7 +7,12 @@

import java.util.List;

/**
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
public class KrakenHostList {
Expand Down
Expand Up @@ -9,8 +9,11 @@
* The Twitch ingesting system is the first stop for a broadcast stream.
* An ingest server receives your stream, and the ingesting system
* authorizes and registers streams, then prepares them for viewers.
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
public class KrakenIngest {

@JsonProperty("_id")
Expand Down
Expand Up @@ -6,8 +6,11 @@

/**
* Model representing a list of ingest servers.
* @deprecated Kraken is deprecated and has been shut down on <b>Febuary 28, 2022</b>.
* More details about the deprecation are available <a href="https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline">here</a>.
*/
@Data
@Deprecated
public class KrakenIngestList {
/**
* Data
Expand Down

0 comments on commit fd31b90

Please sign in to comment.