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;
/**
* A status message posted by a user to a space
*/
public class StatusFull extends Status {
/**
* All the comments on the status
*/
private List comments;
/**
* The ratings on the status
*/
private RatingValuesMap ratings;
/**
* 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 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 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;
}
}