public class BoxRepresentation extends BoxJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxRepresentation.BoxRepContent |
static class |
BoxRepresentation.BoxRepPropertiesMap |
static class |
BoxRepresentation.BoxRepStatus |
BoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIMENSION_1024 |
static java.lang.String |
DIMENSION_160 |
static java.lang.String |
DIMENSION_2048 |
static java.lang.String |
DIMENSION_32
Supported sizes for images representation
(Please note that not all of them are available on every file, refer to the documentation)
|
static java.lang.String |
DIMENSION_320 |
static java.lang.String |
DIMENSION_94 |
protected static java.lang.String |
FIELD_CONTENT |
protected static java.lang.String |
FIELD_INFO |
protected static java.lang.String |
FIELD_PROPERTIES |
protected static java.lang.String |
FIELD_REPRESENTATION |
protected static java.lang.String |
FIELD_STATUS |
static java.lang.String |
REP_HINTS_HEADER
Http header to inform the server on which representations you are interested
This header can be used for instance when retrieving the file info or a folder.
|
static java.lang.String |
TYPE_DASH |
static java.lang.String |
TYPE_FILMSTRIP |
static java.lang.String |
TYPE_JPG
Supported Representation types
|
static java.lang.String |
TYPE_MP3 |
static java.lang.String |
TYPE_MP4 |
static java.lang.String |
TYPE_PDF |
static java.lang.String |
TYPE_PNG |
static java.lang.String |
TYPE_TEXT |
| Constructor and Description |
|---|
BoxRepresentation()
Constructs an empty BoxExpiringEmbedLinkFile object.
|
BoxRepresentation(com.eclipsesource.json.JsonObject object)
Constructs a BoxRepresentation with the provided map values
|
| Modifier and Type | Method and Description |
|---|---|
BoxRepresentation.BoxRepContent |
getContent() |
BoxEmbedLink |
getInfo() |
BoxRepresentation.BoxRepPropertiesMap |
getProperties() |
static java.lang.String |
getRepresentationHintString(java.lang.String repType,
java.lang.String repSize)
Helper method to generate representation hint string
|
java.lang.String |
getRepresentationType()
Retrieves the representation type.
|
BoxRepresentation.BoxRepStatus |
getStatus() |
addInJsonArray, addInJsonArray, createFromJson, createFromJson, equals, getBoxJsonObjectCreator, getPropertiesKeySet, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsJsonArray, getPropertyAsJsonObject, getPropertyAsJsonObjectArray, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringHashSet, getPropertyValue, hashCode, parseJSONMember, remove, set, set, set, set, set, set, set, set, set, toJson, toJsonObjectprotected static final java.lang.String FIELD_REPRESENTATION
protected static final java.lang.String FIELD_PROPERTIES
protected static final java.lang.String FIELD_STATUS
protected static final java.lang.String FIELD_CONTENT
protected static final java.lang.String FIELD_INFO
public static final java.lang.String TYPE_JPG
public static final java.lang.String TYPE_PNG
public static final java.lang.String TYPE_PDF
public static final java.lang.String TYPE_TEXT
public static final java.lang.String TYPE_MP4
public static final java.lang.String TYPE_DASH
public static final java.lang.String TYPE_FILMSTRIP
public static final java.lang.String TYPE_MP3
public static final java.lang.String DIMENSION_32
public static final java.lang.String DIMENSION_94
public static final java.lang.String DIMENSION_160
public static final java.lang.String DIMENSION_320
public static final java.lang.String DIMENSION_1024
public static final java.lang.String DIMENSION_2048
public static final java.lang.String REP_HINTS_HEADER
public BoxRepresentation()
public BoxRepresentation(com.eclipsesource.json.JsonObject object)
object - JsonObject representing this classpublic java.lang.String getRepresentationType()
public BoxRepresentation.BoxRepPropertiesMap getProperties()
public BoxRepresentation.BoxRepStatus getStatus()
public BoxEmbedLink getInfo()
public BoxRepresentation.BoxRepContent getContent()
public static java.lang.String getRepresentationHintString(java.lang.String repType,
java.lang.String repSize)
repType - the type of representationrepSize - the size of representation, used for image types. (please refer to dimension string