This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Condivisione { | |
private Utente utente; | |
private Boolean permessi; | |
public Condivisione(Utente utente, Boolean permessi){ | |
this.utente=utente; | |
this.permessi=permessi; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class Utente { | |
private String username; | |
private String password; | |
private List<ToDo> todos; | |
Utente( String username, String password){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum TitoloBacheca { | |
UNIVERSITA("Università"), | |
LAVORO("Lavoro"), | |
TEMPO_LIBERO("Tempo Libero"); | |
private final String label; | |
TitoloBacheca(String label) { | |
this.label = label; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum StatoToDo { | |
COMPLETATO("COMPLETATO"), | |
NON_COMPLETATO("NON COMPLETATO"); | |
private final String label; | |
StatoToDo(String label) { | |
this.label = label; | |
} | |
public String getLabel() { | |
return label; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.LocalDate; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ToDo { | |
private String titolo; | |
private String descrizione; | |
private TitoloBacheca posizione; | |
private LocalDate dataScadenza; | |
private String URL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.time.LocalDate; | |
import java.util.Scanner; | |
/*import javax.swing.*; | |
import java.awt.*;*/ | |
public class Main /*extends JFrame*/ { | |
private static List<Utente> utenti = new ArrayList<>(); | |
private static Utente utenteLoggato = null; |