package interfaces;

import java.sql.SQLException;
import java.util.List;
import java.sql.ResultSet;

import model.Utente;

public interface UtenteDaoInterface{

  public void insertUser(String nome, String cognome, String username, String email, String password) throws SQLException;
  public void deleteUser(int idUtente) throws SQLException;
  public List<Utente> allUsers() throws SQLException;
  public void deleteAllUsers() throws SQLException;
  public String getUserType(int idUtente) throws SQLException;
  public boolean userAlreadyRegistrated(String username, String email) throws SQLException;
  public void voteGame(int idGioco, int idUtente, int voto) throws SQLException;
  public void reviewGame(String testoRecensione, int idGioco, int idUtente) throws SQLException;
  public void promoteUser(int idUtente) throws SQLException;
  public void demoteUser(int idUtente) throws SQLException;
  public void play(int idGioco) throws SQLException;
}

package interfaces;

import java.sql.SQLException;
import java.util.List;
import java.sql.ResultSet;
import java.util.TreeMap;

import model.Utente;

public interface UtenteDaoInterface{

  public void insertUser(String nome, String cognome, String username, String email, String password) throws SQLException;
  public void deleteUser(int idUtente) throws SQLException;
  public List<Utente> allUsers() throws SQLException;
  public void deleteAllUsers() throws SQLException;
  public String getUserType(int idUtente) throws SQLException;
  public boolean userAlreadyRegistrated(String username, String email) throws SQLException;
  public void voteGame(int idGioco, int idUtente, int voto) throws SQLException;
  public void reviewGame(String testoRecensione, int idGioco, int idUtente) throws SQLException;
  public void promoteUser(int idUtente) throws SQLException;
  public void demoteUser(int idUtente) throws SQLException;
  public TreeMap<Integer, String> getTimeline(int idUtente) throws SQLException;
  public void play(int idGioco) throws SQLException;
}

add getTimeline method