updated client feed, added list of attachments

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@122273 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-01-18 08:51:01 +00:00
parent f4e90bfb6a
commit 932f323f14
1 changed files with 20 additions and 10 deletions

View File

@ -2,6 +2,7 @@ package org.gcube.portal.databook.shared;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.jsonmaker.gwt.client.Jsonizer;
@ -9,13 +10,12 @@ import org.jsonmaker.gwt.client.Jsonizer;
/**
*
* @author Massimiliano Assante, ISTI-CNR
* @version 0.1 July 2012
*
*/
@SuppressWarnings("serial")
public class ClientFeed implements Serializable{
public class ClientFeed implements Serializable {
public interface ClientFeedJsonizer extends Jsonizer{}
public interface ClientFeedJsonizer extends Jsonizer {}
private String key;
private String type;
@ -30,15 +30,16 @@ public class ClientFeed implements Serializable{
private String linkDescription;
private String linkUrlThumbnail;
private String linkHost;
private List<String> attachments;
public ClientFeed() {
super();
}
public ClientFeed(String key, String type, String userid, Date time,
String uri, String description, String fullName, String email,
String thumbnailURL, String linkTitle, String linkDescription,
String linkUrlThumbnail, String linkHost) {
String linkUrlThumbnail, String linkHost, List<String> attachments) {
super();
this.key = key;
this.type = type;
@ -53,9 +54,9 @@ public class ClientFeed implements Serializable{
this.linkDescription = linkDescription;
this.linkUrlThumbnail = linkUrlThumbnail;
this.linkHost = linkHost;
this.attachments = attachments;
}
public String getKey() {
return key;
}
@ -159,15 +160,24 @@ public class ClientFeed implements Serializable{
public void setLinkHost(String linkHost) {
this.linkHost = linkHost;
}
public List<String> getAttachments() {
return attachments;
}
public void setAttachments(List<String> attachments) {
this.attachments = attachments;
}
@Override
public String toString() {
return "ClientFeed [key=" + key + ", type=" + type + ", userid="
+ userid + ", uri=" + uri + ", description=" + description
+ ", fullName=" + fullName + ", email=" + email
+ userid + ", time=" + time + ", uri=" + uri + ", description="
+ description + ", fullName=" + fullName + ", email=" + email
+ ", thumbnailURL=" + thumbnailURL + ", linkTitle=" + linkTitle
+ ", linkDescription=" + linkDescription
+ ", linkUrlThumbnail=" + linkUrlThumbnail + ", linkHost="
+ linkHost + "]";
}
+ linkHost + ", attachments=" + attachments + "]";
}
}