- Notifications
You must be signed in to change notification settings - Fork1
Add the new Castlabs 'Download Keys' call#7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/CastlabsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/response/DownloadKeysResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| package com.brightcove.castlabs.client.response; | ||
| public class DownloadKeysResponse { | ||
| public String uuid; | ||
| public String type; | ||
| public String keyId; | ||
| public String streamType; | ||
| public String assetId; | ||
| public String variantId; | ||
| public String keyRotationId; | ||
| public String ingestChannel; | ||
| public String ingestRegion; | ||
| public String auditChanged; | ||
| public String auditChangedBy; | ||
| public String getUuid() { | ||
| return uuid; | ||
| } | ||
| public void setUuid(String uuid) { | ||
| this.uuid = uuid; | ||
| } | ||
| public String getType() { | ||
| return type; | ||
| } | ||
| public void setType(String type) { | ||
| this.type = type; | ||
| } | ||
| public String getKeyId() { | ||
| return keyId; | ||
| } | ||
| public void setKeyId(String keyId) { | ||
| this.keyId = keyId; | ||
| } | ||
| public String getStreamType() { | ||
| return streamType; | ||
| } | ||
| public void setStreamType(String streamType) { | ||
| this.streamType = streamType; | ||
| } | ||
| public String getAssetId() { | ||
| return assetId; | ||
| } | ||
| public void setAssetId(String assetId) { | ||
| this.assetId = assetId; | ||
| } | ||
| public String getVariantId() { | ||
| return variantId; | ||
| } | ||
| public void setVariantId(String variantId) { | ||
| this.variantId = variantId; | ||
| } | ||
| public String getKeyRotationId() { | ||
| return keyRotationId; | ||
| } | ||
| public void setKeyRotationId(String keyRotationId) { | ||
| this.keyRotationId = keyRotationId; | ||
| } | ||
| public String getIngestChannel() { | ||
| return ingestChannel; | ||
| } | ||
| public void setIngestChannel(String ingestChannel) { | ||
| this.ingestChannel = ingestChannel; | ||
| } | ||
| public String getIngestRegion() { | ||
| return ingestRegion; | ||
| } | ||
| public void setIngestRegion(String ingestRegion) { | ||
| this.ingestRegion = ingestRegion; | ||
| } | ||
| public String getAuditChanged() { | ||
| return auditChanged; | ||
| } | ||
| public void setAuditChanged(String auditChanged) { | ||
| this.auditChanged = auditChanged; | ||
| } | ||
| public String getAuditChangedBy() { | ||
| return auditChangedBy; | ||
| } | ||
| public void setAuditChangedBy(String auditChangedBy) { | ||
| this.auditChangedBy = auditChangedBy; | ||
| } | ||
| @Override | ||
| public String toString() { | ||
| return "DownloadKeysResponse{" + | ||
| "uuid='" + uuid + '\'' + | ||
| ", type='" + type + '\'' + | ||
| ", keyId='" + keyId + '\'' + | ||
| ", streamType='" + streamType + '\'' + | ||
| ", assetId='" + assetId + '\'' + | ||
| ", variantId='" + variantId + '\'' + | ||
| ", keyRotationId='" + keyRotationId + '\'' + | ||
| ", ingestChannel='" + ingestChannel + '\'' + | ||
| ", ingestRegion='" + ingestRegion + '\'' + | ||
| ", auditChanged='" + auditChanged + '\'' + | ||
| ", auditChangedBy='" + auditChangedBy + '\'' + | ||
| '}'; | ||
| } | ||
| } |
37 changes: 37 additions & 0 deletionssrc/test/java/com/brightcove/castlabs/client/CastlabsClientTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletionssrc/test/resources/sample_download_keys_response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {"uuid":"0000f5ac-e520-3b7f-b9f1-2201210887e1","type":"CENC","keyId":"10204c7b2c154b47a5af2ee41ecebf01","streamType":"VIDEO_AUDIO","assetId":"10204c7b-2c15-4b47-a5af-2ee41ecebf0a","variantId":"playready","ingestChannel":"API","ingestRegion":"US_WEST_1","auditChanged":"2016-03-15T11:20:40.880Z","auditChangedBy":"332cf57f-0941-482c-82cd-d1c8bc32cb51"} | ||
| {"uuid":"0001a754-09a7-3457-8608-3ddf7cfd1705","type":"CENC","keyId":"9fa85148ebc441c7a2f361c7927be915","streamType":"VIDEO_AUDIO","assetId":"13cb7cfd-4b42-4f9c-a67c-3577fb431c43","variantId":"widevine","ingestChannel":"API","ingestRegion":"US_WEST_1","auditChanged":"2016-02-12T15:02:58.964Z","auditChangedBy":"332cf57f-0941-482c-82cd-d1c8bc32cb51"} |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.