package com.jgardella.app.backend;

import java.time.LocalDateTime;

public class Event implements Comparable<Event>
{
	private String name;
	private String type;
	private LocalDateTime date;

	public Event(String name, String type, LocalDateTime date)
	{
		this.name = name;
		this.type = type;
		this.date = date;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	public LocalDateTime getDate()
	{
		return date;
	}

	public void setDate(LocalDateTime date)
	{
		this.date = date;
	}

	public int compareTo(Event event)
	{
		return date.compareTo(event.date);
	}

}

@@ -184,16 +184,55 @@
 me date;
+%0A%09private ArrayList%3CMember%3E attendance;
 %0A%0A%09publi
@@ -340,32 +340,77 @@
 is.date = date;%0A
+%09%09this.attendance = new ArrayList%3CMember%3E();%0A
 %09%7D%0A%0A%09public Stri
@@ -727,32 +727,115 @@
 ate = date;%0A%09%7D%0A%0A
+%09public void addMemberToAttendance(Member member)%0A%09%7B%0A%09%09attendance.add(member);%0A%09%7D%0A%0A
 %09public int comp

Add attendance list to Event.