package net.dirtydeeds.discordsoundboard.service;

import net.dirtydeeds.discordsoundboard.beans.User;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface UserService {

    Optional<User> findById(String id);

    Iterable<User> saveAll(List<User> users);

    User findOneByIdOrUsernameIgnoreCase(String userNamId, String userName);

    User save(User user);

    Iterable<User> findAll(Pageable pageable);
}
