private String announcement;
+ private Date lastLogin;
+
/**
* Retrieve the name.
*
return announcement;
}
-
/**
* Modify the announcement.
*
announcement = anAnnouncement;
}
+ /**
+ * Retrieve the lastLogin.
+ *
+ * @return the lastLogin
+ */
+ public Date getLastLogin() {
+ return lastLogin;
+ }
+
@Override
public void createFromJSON(String text) {
JSONObject json = (JSONObject) JSONParser.parse(text);
tagsPath = unmarshallString(json, "tags");
trashPath = unmarshallString(json, "trash");
announcement = unmarshallString(json, "announcement");
+ if (json.get("lastLogin") != null)
+ lastLogin = new Date(new Long(json.get("lastLogin").toString()));
if (json.get("creationDate") != null)
creationDate = new Date(new Long(json.get("creationDate").toString()));
if (json.get("modificationDate") != null)
return res;
}
+ @Override
+ public String getLastModifiedSince() {
+ return null;
+ }
}