fr.funixgaming.api.twitch.service.ressources.TwitchGameResource Maven / Gradle / Ivy
package fr.funixgaming.api.twitch.service.ressources;
import com.funixproductions.api.twitch.reference.client.clients.game.TwitchGameClient;
import com.funixproductions.api.twitch.reference.client.dtos.responses.TwitchDataResponseDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.game.TwitchGameDTO;
import fr.funixgaming.api.twitch.client.clients.FunixGamingTwitchGameClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/twitch/games")
@RequiredArgsConstructor
public class TwitchGameResource implements FunixGamingTwitchGameClient {
private final TwitchGameClient twitchGameClient;
@Override
public TwitchDataResponseDTO getGameByName(String name) {
return twitchGameClient.getGameByName(name);
}
@Override
public TwitchDataResponseDTO getGameById(String id) {
return twitchGameClient.getGameById(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy