ConnectApi.BatchInput Class

Construct a set of inputs to be passed into a method at the same time.
Use this constructor when there isn’t a binary input:
ConnectApi.BatchInput(Object input)
Use this constructor to pass one binary input:
ConnectApi.BatchInput(Object input, ConnectApi.BinaryInput binary)
Use this constructor to pass multiple binary inputs:
ConnectApi.BatchInput(Object input, List<ConnectApi.BinaryInput> binaries)

The constructors takes these parameters:

Argument Type Description Available Version
input Object An individual input object to be used in the batch operation. For example, for postFeedElementBatch(), this should be ConnectApi.FeedElementInput. 32.0
binary ConnectApi.BinaryInput A binary file to associate with the input object. 32.0
binaries List<ConnectApi.BinaryInput> A list of binary files to associate with the input object. 32.0
Previous
Next