* and moodId are set
* @return new Request object to update the current viewer's
* status and/or mood
*/
public static Request updateStatus(StatusMood statusMood) {
Request request = new Request(restTemplate, null, "PUT");
request.setGroupId(SELF);
request.setGuid(ME);
// Add REST payload parameters
try {
long moodId = Long.parseLong(statusMood.getMoodId());
request.addRestPayloadParameter("moodId", moodId);
} catch (NumberFormatException e) {
request.addRestPayloadParameter("moodId", statusMood.getMoodId());
}
request.addRestPayloadParameter("status", statusMood.getStatus());
return request;
}