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

fr.funixgaming.api.twitch.service.ressources.TwitchUserResource Maven / Gradle / Ivy

There is a newer version: 1.3.1.2
Show newest version
package fr.funixgaming.api.twitch.service.ressources;

import com.funixproductions.api.twitch.reference.client.clients.users.TwitchUsersClient;
import com.funixproductions.api.twitch.reference.client.dtos.responses.TwitchDataResponseDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.user.TwitchFollowDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.user.TwitchUserDTO;
import fr.funixgaming.api.twitch.client.clients.FunixGamingTwitchUserClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/twitch/user")
@RequiredArgsConstructor
public class TwitchUserResource implements FunixGamingTwitchUserClient {

    private final TwitchUsersClient service;

    @Override
    public TwitchDataResponseDTO isUserFollowingStreamer(String userId, String streamerId) {
        return service.isUserFollowingStreamer(userId, streamerId);
    }

    @Override
    public TwitchDataResponseDTO getUsersByName(List name) {
        return service.getUsersByName(name);
    }

    @Override
    public TwitchDataResponseDTO getUsersById(List id) {
        return service.getUsersById(id);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy