package mil.dds.anet.beans;

import java.util.LinkedList;
import java.util.List;

import org.joda.time.DateTime;

import mil.dds.anet.emails.AnetEmailAction;

public class AnetEmail {
	Integer id;
	AnetEmailAction action;
	List<String> toAddresses;
	DateTime createdAt;
	String comment;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public AnetEmailAction getAction() {
		return action;
	}

	public void setAction(AnetEmailAction action) {
		this.action = action;
	}

	public List<String> getToAddresses() {
		return toAddresses;
	}

	public void setToAddresses(List<String> toAddresses) {
		this.toAddresses = toAddresses;
	}

	public void addToAddress(String toAddress) {
		if (toAddresses == null) { toAddresses = new LinkedList<String>(); }
		toAddresses.add(toAddress);
	}

	public DateTime getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(DateTime createdAt) {
		this.createdAt = createdAt;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
}

@@ -178,16 +178,24 @@
 mail %7B%0A%09
+private 
 Integer 
@@ -199,16 +199,24 @@
 er id;%0A%09
+private 
 AnetEmai
@@ -232,16 +232,24 @@
 ction;%0A%09
+private 
 List%3CStr
@@ -267,16 +267,24 @@
 esses;%0A%09
+private 
 DateTime
@@ -296,16 +296,24 @@
 tedAt;%0A%09
+private 
 String c

Make fields private