Interface RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveThingsLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponse
s toRetrieveThings
command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse
retrieved(java.util.List<org.eclipse.ditto.things.model.Thing> things)
Creates a success response containing the retrieved value for theRetrieveThings
command.org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse
retrieved(java.util.List<org.eclipse.ditto.things.model.Thing> things, java.util.function.Predicate<org.eclipse.ditto.json.JsonField> predicate)
Creates a success response containing the retrieved value for theRetrieveThings
command.-
Methods inherited from interface org.eclipse.ditto.client.live.commands.base.LiveCommandResponseFactory
errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved(java.util.List<org.eclipse.ditto.things.model.Thing> things, java.util.function.Predicate<org.eclipse.ditto.json.JsonField> predicate)
Creates a success response containing the retrieved value for theRetrieveThings
command.- Parameters:
things
- the value of the requested Things.predicate
- a predicate determining which fields from the provided Things should be included in the response.- Returns:
- the response.
- Throws:
java.lang.NullPointerException
- if any argument isnull
.
-
retrieved
@Nonnull org.eclipse.ditto.things.model.signals.commands.query.RetrieveThingsResponse retrieved(java.util.List<org.eclipse.ditto.things.model.Thing> things)
Creates a success response containing the retrieved value for theRetrieveThings
command.- Parameters:
things
- the value of the requested Things.- Returns:
- the response.
- Throws:
java.lang.NullPointerException
- ifthings
isnull
.
-
-