GitHubRelease Reference

File
GitHubUpdates/GitHubRelease.h
Copyright
© (c) 2017, Jean-David Gadina - www.xs-labs.com
Date
Sunday, June 18, 2017
Includes
  • <Foundation/Foundation.h>

Class GitHubRelease

Attributes

Superclass
NSObject

+ releasesWithData:error:

Gets an array of releases from JSON data.

+ ( nullable NSArray< GitHubRelease * > * )releasesWithData: ( NSData * )data error: ( NSError * __autoreleasing * )error;

Parameters
  • data
    The JSON data
  • error
    An optional pointer to an error object
Return value

The initialized instance

assets

The assets contained in the release.

@property( atomic, readonly, strong, nullable ) NSArray< GitHubReleaseAsset * > * assets;

See also

body

The release notes for the release.

@property( atomic, readonly, strong, nullable ) NSString * body;

created

The release's creation date.

@property( atomic, readonly, strong, nullable ) NSDate * created;

draft

Whether this release is a draft.

@property( atomic, readonly ) BOOL draft;

htmlURL

The web URL for the release.

@property( atomic, readonly, strong, nullable ) NSURL * htmlURL;

prerelease

Whether this release is a prerelease.

@property( atomic, readonly ) BOOL prerelease;

published

The release's publication date.

@property( atomic, readonly, strong, nullable ) NSDate * published;

tagName

The name of the release's tag.

@property( atomic, readonly, strong, nullable ) NSString * tagName;

tarballURL

The URL for the source code's TAR archive.

@property( atomic, readonly, strong, nullable ) NSURL * tarballURL;

url

The release URL.

@property( atomic, readonly, strong, nullable ) NSURL * url;

Discussion

This URL corresponds to the release API feed URL.

See also

zipballURL

The URL for the source code's ZIP archive.

@property( atomic, readonly, strong, nullable ) NSURL * zipballURL;