fr.sii.ogham.html.inliner.ContentWithImages Maven / Gradle / Ivy
package fr.sii.ogham.html.inliner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import fr.sii.ogham.email.attachment.Attachment;
public class ContentWithImages {
private String content;
private List attachments;
public ContentWithImages(String content, Attachment... attachments) {
this(content, new ArrayList<>(Arrays.asList(attachments)));
}
public ContentWithImages(String content, List attachments) {
super();
this.content = content;
this.attachments = attachments;
}
public String getContent() {
return content;
}
public List getAttachments() {
return attachments;
}
public void setContent(String content) {
this.content = content;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public void addAttachments(List attachments) {
this.attachments.addAll(attachments);
}
}