diff --git a/pom.xml b/pom.xml index 5310ce3..3818afb 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.gcube.portal social-networking-library - 1.10.1-SNAPSHOT + 1.10.2-SNAPSHOT gCube Social Networking Library The gCube Social Networking Library is the 'bridge' between your gCube Applications and the social networking facilities. diff --git a/src/main/java/org/gcube/portal/databook/shared/EnhancedFeed.java b/src/main/java/org/gcube/portal/databook/shared/EnhancedFeed.java new file mode 100644 index 0000000..f258516 --- /dev/null +++ b/src/main/java/org/gcube/portal/databook/shared/EnhancedFeed.java @@ -0,0 +1,85 @@ +package org.gcube.portal.databook.shared; + +import java.io.Serializable; +import java.util.ArrayList; +/** + * + * @author massi + * This class contains addtional user related information about a Feed + * e.g. if this user has liked it + */ +@SuppressWarnings("serial") +public class EnhancedFeed implements Serializable{ + private Feed feed; + private boolean liked; + private boolean isUsers; + private ArrayList comments; + private ArrayList attachments; + + + public EnhancedFeed() { + super(); + } + public EnhancedFeed(Feed feed, boolean liked, boolean isUsers) { + super(); + this.feed = feed; + this.liked = liked; + this.isUsers = isUsers; + } + + public EnhancedFeed(Feed feed, boolean liked, boolean isUsers, ArrayList comments) { + super(); + this.isUsers = isUsers; + this.feed = feed; + this.liked = liked; + this.comments = comments; + } + + + public EnhancedFeed(Feed feed, boolean liked, boolean isUsers, + ArrayList comments, ArrayList attachments) { + super(); + this.feed = feed; + this.liked = liked; + this.isUsers = isUsers; + this.comments = comments; + this.attachments = attachments; + } + public ArrayList getComments() { + return comments; + } + public void setComments(ArrayList comments) { + this.comments = comments; + } + public Feed getFeed() { + return feed; + } + public void setFeed(Feed feed) { + this.feed = feed; + } + public boolean isLiked() { + return liked; + } + public void setLiked(boolean liked) { + this.liked = liked; + } + public boolean isUsers() { + return isUsers; + } + public void setUsers(boolean isUsers) { + this.isUsers = isUsers; + } + public ArrayList getAttachments() { + return attachments; + } + public void setAttachments(ArrayList attachments) { + this.attachments = attachments; + } + @Override + public String toString() { + return "EnhancedFeed [feed=" + feed + ", liked=" + liked + ", isUsers=" + + isUsers + ", comments=" + comments + ", attachments=" + + attachments + "]"; + } + +}