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:
parent
f4e90bfb6a
commit
932f323f14
|
@ -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,6 +30,7 @@ public class ClientFeed implements Serializable{
|
|||
private String linkDescription;
|
||||
private String linkUrlThumbnail;
|
||||
private String linkHost;
|
||||
private List<String> attachments;
|
||||
|
||||
public ClientFeed() {
|
||||
super();
|
||||
|
@ -38,7 +39,7 @@ public class ClientFeed implements Serializable{
|
|||
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;
|
||||
}
|
||||
|
@ -160,14 +161,23 @@ public class ClientFeed implements Serializable{
|
|||
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 + "]";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue