com.podio.status.StatusFull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.status;
import java.util.List;
import java.util.Map;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import com.podio.comment.Comment;
import com.podio.file.File;
import com.podio.rating.RatingType;
import com.podio.rating.RatingTypeKeyDeserializer;
import com.podio.rating.RatingValuesMap;
import com.podio.task.Task;
/**
* A status message posted by a user to a space
*/
public class StatusFull extends Status {
/**
* The alerts in the status message
*/
// private List alerts;
/**
* All the comments on the status
*/
private List comments;
/**
* The ratings on the status
*/
private RatingValuesMap ratings;
/**
* All the conversations on the status that the user is part of
*/
// private List conversations;
/**
* The tasks on the status that are public or the user is part of
*/
private List tasks;
/**
* The shares of the status
*/
// private List shares;
/**
* The files on the status
*/
private List files;
/**
* true
if the user is subscribed to the item,
* false
otherwise
*/
private boolean subscribed;
/**
* The ratings and their values done by the active user on the status
*/
private Map userRatings;
// public List getAlerts() {
// return alerts;
// }
//
// public void setAlerts(List alerts) {
// this.alerts = alerts;
// }
public List getComments() {
return comments;
}
public void setComments(List comments) {
this.comments = comments;
}
public RatingValuesMap getRatings() {
return ratings;
}
public void setRatings(RatingValuesMap ratings) {
this.ratings = ratings;
}
// public List getConversations() {
// return conversations;
// }
//
// public void setConversations(List conversations) {
// this.conversations = conversations;
// }
public List getTasks() {
return tasks;
}
public void setTasks(List tasks) {
this.tasks = tasks;
}
// public List getShares() {
// return shares;
// }
//
// public void setShares(List shares) {
// this.shares = shares;
// }
public List getFiles() {
return files;
}
public void setFiles(List files) {
this.files = files;
}
public boolean isSubscribed() {
return subscribed;
}
public void setSubscribed(boolean subscribed) {
this.subscribed = subscribed;
}
public Integer getUserRating(RatingType type) {
return userRatings.get(type);
}
public Map getUserRatings() {
return userRatings;
}
@JsonDeserialize(keyUsing = RatingTypeKeyDeserializer.class)
@JsonProperty("user_ratings")
public void setUserRatings(Map userRatings) {
this.userRatings = userRatings;
}
}