com.github.twitch4j.helix.interceptor.EventSubSubscriptionNameExpander Maven / Gradle / Ivy
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