Methods
(static) getAllLinks(manifestId, localPath, remotePath, userRepresentations, manifestRepresentations, downloadedHash) → {Array.<Link>}
Parameters:
Name | Type | Description |
---|---|---|
manifestId |
string | manifest identifier |
localPath |
string | local path |
remotePath |
string | remote path |
userRepresentations |
Array | representations chosen by a user |
manifestRepresentations |
Array | all manifest representations |
downloadedHash |
object | download unique identifier |
Returns:
array of Link
- Type
- Array.<Link>
(static) getChosenRepresentations(userChosenRepr, manifestRepr) → {array}
Parameters:
Name | Type | Description |
---|---|---|
userChosenRepr |
array | array of chosen representations ids by user |
manifestRepr |
array | array of all manifest representations |
Returns:
chosen representations from manifest
- Type
- array
(static) getDownloadLinks(manifestId, localPath, remotePath, userRepresentations, manifestRepresentations, downloadedHash) → {Array.<Link>}
Parameters:
Name | Type | Description |
---|---|---|
manifestId |
string | manifest identifier |
localPath |
string | local path |
remotePath |
string | remote path |
userRepresentations |
Array | representations chosen by a user |
manifestRepresentations |
Array | all manifest representations |
downloadedHash |
object | download unique identifier |
Returns:
array of Link
- Type
- Array.<Link>