@Immutable
public interface ReleaseAssets
| Modifier and Type | Method and Description |
|---|---|
ReleaseAsset |
get(int number)
Get a single release asset.
|
Iterable<ReleaseAsset> |
iterate()
Iterate them all.
|
Release |
release()
The release we're in.
|
ReleaseAsset |
upload(byte[] content,
String type,
String name)
Upload a release asset.
|
Release release()
Iterable<ReleaseAsset> iterate()
ReleaseAsset upload(byte[] content, String type, String name) throws IOException
content - The raw content bytes.type - Content-Type of the release asset.name - Name of the release asset.IOException - If an IO Exception occursReleaseAsset get(int number)
number - The release asset ID.Copyright © 2012–2018 jcabi.com. All rights reserved.