IndexV2DiffStreamReceiver

Functions

Link copied to clipboard
abstract fun onStreamEnded()

Called when the stream has been processed to its end.

Link copied to clipboard
abstract fun receivePackageMetadataDiff(packageName: String, packageJsonObject: <Error class: unknown class>?)

Receives one diff for a MetadataV2 from the index stream. This is called once for each package in the index diff.

Link copied to clipboard
abstract fun receiveRepoDiff(version: Long, repoJsonObject: <Error class: unknown class>)

Receives the diff for the RepoV2 from the index stream.

Link copied to clipboard
abstract fun receiveVersionsDiff(packageName: String, versionsDiffMap: Map<String, <Error class: unknown class>?>?)

Receives the diff for all versions of the give n packageName as a map of versions IDs to the diff JsonObject. This is called once for each package in the index diff (if versions have changed).