@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.
|
@NotNull(message="release is never NULL") Release release()
@NotNull(message="iterable is never NULL") Iterable<ReleaseAsset> iterate()
@NotNull(message="ReleaseAsset is never NULL") ReleaseAsset upload(@NotNull(message="content is never NULL") byte[] content, @NotNull(message="type is never NULL") String type, @NotNull(message="name is never NULL") 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 occurs@NotNull(message="ReleaseAsset is never NULL") ReleaseAsset get(int number)
number
- The release asset ID.Copyright © 2012–2014 jcabi.com. All rights reserved.