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;
}

@@ -93,16 +93,42 @@
 sultSet;
+%0Aimport java.util.TreeMap;
 %0A%0Aimport
@@ -916,32 +916,113 @@
 s SQLException;%0A
+  public TreeMap%3CInteger, String%3E getTimeline(int idUtente) throws SQLException;%0A
   public void pl

add getTimeline method