public class StorageContentMetadata
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StorageContentMetadata.ContentType
An enum denoting type of content in the storage.
|
static class |
StorageContentMetadata.TriggerType
An enum denoting options for type for trigger for content.
|
| Modifier and Type | Field and Description |
|---|---|
long |
contentId
ID of the content.
|
StorageContentMetadata.ContentType |
contentType
Type of the content.
|
java.time.Instant |
createdTimeStamp
Timestamp at which this content was created.
|
long |
duration
Duration of the content in milliseconds.
|
java.lang.String |
metadata
User metadata.
|
long |
size
Size of the content in MegaBytes.
|
Identifier.SourceIdentifier |
sourceUri
Identifier.SourceIdentifier contains info such as networkId, deviceNodeId, resourceEui. |
java.lang.String |
staticLink
Link to thumbnail of this content.
|
StorageContentMetadata.TriggerType |
triggerType
Type of triggered which was cause of creation this content.
|
Identifier.TriggerIdentifier |
uploadTriggeredUri
Identifier.TriggerIdentifier stores identifier of trigger. |
| Modifier | Constructor and Description |
|---|---|
protected |
StorageContentMetadata(long contentId,
Identifier.SourceIdentifier sourceUri,
int contentType,
int triggerType,
Identifier.TriggerIdentifier triggerUri,
long size,
java.lang.String staticLink,
java.lang.String metadata,
long createdTimeStamp,
long duration)
Constructs object of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
@SerializedName(value="contentId") public final long contentId
@SerializedName(value="contentType") public final StorageContentMetadata.ContentType contentType
StorageContentMetadata.ContentType@SerializedName(value="uploadTriggerType") public final StorageContentMetadata.TriggerType triggerType
StorageContentMetadata.TriggerType@SerializedName(value="size") public final long size
@SerializedName(value="staticLink") public final java.lang.String staticLink
@SerializedName(value="userMetaData") public final java.lang.String metadata
@SerializedName(value="sourceUri") public final Identifier.SourceIdentifier sourceUri
Identifier.SourceIdentifier contains info such as networkId, deviceNodeId, resourceEui.@SerializedName(value="uploadTriggeredUri") public final Identifier.TriggerIdentifier uploadTriggeredUri
Identifier.TriggerIdentifier stores identifier of trigger.@SerializedName(value="createdTimestamp") public final java.time.Instant createdTimeStamp
@SerializedName(value="contentDuration") public final long duration
protected StorageContentMetadata(long contentId,
Identifier.SourceIdentifier sourceUri,
int contentType,
int triggerType,
Identifier.TriggerIdentifier triggerUri,
long size,
java.lang.String staticLink,
java.lang.String metadata,
long createdTimeStamp,
long duration)
contentId - ID of the content.sourceUri - String indicating where the content is stored.contentType - Type of content.triggerType - Triggers which caused this content.triggerUri - String indicating source which caused this content.size - Size of content.staticLink - Link to thumbnail of this content.metadata - Metadata of the content.createdTimeStamp - Timestamp of content creation.duration - Duration of content.