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

com.github.twitch4j.helix.interceptor.EventSubSubscriptionNameExpander Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
package com.github.twitch4j.helix.interceptor;

import com.github.twitch4j.eventsub.subscriptions.SubscriptionType;
import feign.Param;

public class EventSubSubscriptionNameExpander implements Param.Expander {
    @Override
    public String expand(Object value) {
        if (value instanceof SubscriptionType)
            return ((SubscriptionType) value).getName();
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy