public class BoxRecentItem extends BoxJSONObject
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.*
Constructor and Description |
---|
BoxRecentItem(JsonObject jsonObject,
BoxAPIConnection api)
Construct a BoxRecentItem.
|
Modifier and Type | Method and Description |
---|---|
Date |
getInteractedAt()
Get the interaction date.
|
URL |
getInteractionSharedLink()
Get the shared link, if the item was accessed through a shared link.
|
String |
getInteractionType()
Get interaction type.
|
BoxItem.Info |
getItem()
Get the item which was interacted with.
|
String |
getType()
Get item type.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxRecentItem(JsonObject jsonObject, BoxAPIConnection api)
jsonObject
- the parsed JSON object.api
- the API connection to be used to fetch interacted itemprotected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
member
- the JSON member to be parsed.public String getInteractionType()
public BoxItem.Info getItem()
public Date getInteractedAt()
public URL getInteractionSharedLink()