download

public boolean download(String slug, File destinationFile)

Downloads a DLC file. This endpoint REQUIRES authentication.

Return

true if download was successful

Parameters

slug

The DLC slug

destinationFile

The file to save the download to


public boolean download(String slug, File destinationFile, String version)

Downloads a specific version of a DLC file. This endpoint REQUIRES authentication.

Return

true if download was successful

Parameters

slug

The DLC slug

destinationFile

The file to save the download to

version

The specific version to download, or null for latest


public boolean download(String slug, File destinationFile, String version, NightbreakAccount.DownloadProgressCallback progressCallback)

Downloads a DLC file with progress updates. This endpoint REQUIRES authentication.

Return

true if download was successful

Parameters

slug

The DLC slug

destinationFile

The file to save the download to

version

The specific version to download, or null for latest

progressCallback

Callback for progress updates, or null for no updates