32 lines
701 B
Java
32 lines
701 B
Java
package org.gcube.portal.databook.shared;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
|
|
public class PostWithAttachment implements Serializable {
|
|
private Post post;
|
|
private List<Attachment> attachments;
|
|
|
|
public PostWithAttachment(Post post, List<Attachment> attachments){
|
|
super();
|
|
this.post = post;
|
|
this.attachments = attachments;
|
|
}
|
|
|
|
public void setAttachments(List<Attachment> attachments) {
|
|
this.attachments = attachments;
|
|
}
|
|
public void setPost(Post post) {
|
|
this.post = post;
|
|
}
|
|
|
|
|
|
public List<Attachment> getAttachments() {
|
|
return attachments;
|
|
}
|
|
|
|
public Post getPost() {
|
|
return post;
|
|
}
|
|
}
|