|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectio.clarify.api.ClarifyModel
io.clarify.api.Bundle
public class Bundle
| Field Summary |
|---|
| Fields inherited from class io.clarify.api.ClarifyModel |
|---|
client, response |
| Constructor Summary | |
|---|---|
Bundle(ClarifyClient client,
ClarifyResponse response)
|
|
| Method Summary | |
|---|---|
BundleTrack |
addTrack(URI uri)
Adds a new Track to the Bundle with the given media URI |
boolean |
delete()
Deletes this bundle and all of its related Metadata and Tracks, along with media stored on Clarify systems. |
boolean |
deleteTrack(String trackId)
Deletes a track from this bundle. |
BundleTrack |
findTrack(String trackId)
Returns a specific Track by track number for this media Bundle |
String |
getId()
Attempts to navigate the parsed JSON and return the field "id" in the payload |
BundleMetadata |
getMetadata()
Returns this media Bundle's Metadata class, with details on the bundle and any attached user data (if available) |
BundleTrackList |
listTracks()
Returns the list of Tracks associated to this media Bundle |
| Methods inherited from class io.clarify.api.ClarifyModel |
|---|
getClarifyClient, getClarifyResponse, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bundle(ClarifyClient client,
ClarifyResponse response)
| Method Detail |
|---|
public String getId()
RuntimeException - containing the nested exception if the lookup failed
public boolean delete()
throws IOException
IOException - if an error occurred during the delete bundle API call
public BundleTrack addTrack(URI uri)
throws IOException
uri - the URI of the remote media file to add to the Bundle
IOException - if a failure occurred during the API,
typically a 4xx HTTP error code + JSON payload with the error message and details
public BundleTrackList listTracks()
throws IOException
IOException - if a failure occurred during the API,
typically a 4xx HTTP error code + JSON payload with the error message and details
public BundleTrack findTrack(String trackId)
throws IOException
trackId - the GUID of the Track
IOException - if a failure occurred during the API,
typically a 4xx HTTP error code + JSON payload with the error message and details
public boolean deleteTrack(String trackId)
throws IOException
trackId - the GUID of the Track to delete
IOException - if a failure occurred during the API,
typically a 4xx HTTP error code + JSON payload with the error message and details
public BundleMetadata getMetadata()
throws IOException
IOException - if a failure occurred during the API,
typically a 4xx HTTP error code + JSON payload with the error message and details
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||