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

com.elypia.elypiai.twitch.data.StreamType Maven / Gradle / Ivy

The newest version!
package com.elypia.elypiai.twitch.data;

import com.google.gson.annotations.SerializedName;

public enum StreamType {

    @SerializedName("live")
    LIVE("live"),

    @SerializedName("vodcast")
    VODCAST("vodcast");

    private final String NAME;

    StreamType(final String name) {
        NAME = name;
    }

    public String getName() {
        return NAME;
    }

    public static StreamType get(String name) {
        for (StreamType type : values()) {
            if (type.NAME.equals(name))
                return type;
        }

        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy