/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import model.Visita;
/**
*
* @author GuillermoLuis
*/
public class DaoVisita {
List<Visita> ListaDeVisitas = new ArrayList<>();
public List<Visita> getListaDeVisitas() {
return ListaDeVisitas;
}
public void agregarVisita(String nombre,Date fecha,String motivo,String estado,String numero){
Visita v = new Visita();
v.setNombre(nombre);
v.setFecha(fecha);
v.setMotivo(motivo);
v.setEstado(estado);
v.setNumero(numero);
ListaDeVisitas.add(v);
}
}