1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.exoplatform.model;
20
21 import java.util.List;
22 import java.util.Map;
23
24 import org.exoplatform.social.client.api.model.RestActivityStream;
25 import org.exoplatform.social.client.api.model.RestComment;
26 import org.exoplatform.social.client.api.model.RestLike;
27
28 public class SocialActivityInfo {
29
30 private String activityId;
31
32 private String userID;
33
34 private String userName;
35
36 private String imageUrl;
37
38 private String title;
39
40 private String body;
41
42 private long postedTime;
43
44
45 private long updatedTime = 0;
46
47 private int nbLikes;
48
49 private int nbComments;
50
51 private String type;
52
53 private String attachImageUrl;
54
55 public Map<String, String> templateParams;
56
57 public RestActivityStream restActivityStream;
58
59 private List<RestComment> commentList;
60
61 private List<RestLike> likeList;
62
63 public SocialActivityInfo() {
64
65 }
66
67 public void setActivityId(String actId) {
68 activityId = actId;
69 }
70
71 public String getActivityId() {
72 return activityId;
73 }
74
75 public void setUserId(String id) {
76 userID = id;
77 }
78
79 public String getUserId() {
80 return userID;
81 }
82
83 public void setUserName(String name) {
84 userName = name;
85 }
86
87 public String getUserName() {
88 return userName;
89 }
90
91 public void setImageUrl(String url) {
92 imageUrl = url;
93 }
94
95 public String getImageUrl() {
96 return imageUrl;
97 }
98
99 public void setTitle(String tit) {
100 title = tit;
101 }
102
103 public String getTitle() {
104 return title;
105 }
106
107 public void setBody(String bod) {
108 body = bod;
109 }
110
111 public String getBody() {
112 return body;
113 }
114
115 public void setType(String t) {
116 type = t;
117 }
118
119 public String getType() {
120 return type;
121 }
122
123 public void setPostedTime(long time) {
124 postedTime = time;
125 }
126
127 public long getPostedTime() {
128 return postedTime;
129 }
130
131 public long getUpdatedTime() { return updatedTime; }
132
133 public void setUpdatedTime(long time) {
134 updatedTime = time;
135 }
136
137 public void setCommentList(List<RestComment> list) {
138 commentList = list;
139 }
140
141 public List<RestComment> getCommentList() {
142 return commentList;
143 }
144
145 public void setLikelist(List<RestLike> list) {
146 likeList = list;
147 }
148
149 public List<RestLike> getLikeList() {
150 return likeList;
151 }
152
153 public void setCommentNumber(int number) {
154 nbComments = number;
155 }
156
157 public int getCommentNumber() {
158 return nbComments;
159 }
160
161 public void setLikeNumber(int n) {
162 nbLikes = n;
163 }
164
165 public int getLikeNumber() {
166 return nbLikes;
167 }
168
169 public void setAttachedImageUrl(String url) {
170 attachImageUrl = url;
171 }
172
173 public String getAttachedImageUrl() {
174 return attachImageUrl;
175 }
176
177
178 }