@Override public RetrieveFeatureProperty setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, featureId, propertyPointer, dittoHeaders); }
@Override public RetrieveFeatureProperty setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, featureId, propertyPointer, dittoHeaders); }
@Override public RetrieveFeaturePropertyLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders) { return of(RetrieveFeatureProperty.of(getThingId(), getFeatureId(), getPropertyPointer(), dittoHeaders)); }
@Override public RetrieveFeaturePropertyLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders) { return of(RetrieveFeatureProperty.of(getThingId(), getFeatureId(), getPropertyPointer(), dittoHeaders)); }
/** * Creates a new {@code RetrieveFeatureProperty} from a JSON object. * * @param jsonObject the JSON object of which the command is to be created. * @param dittoHeaders the headers of the command. * @return the command. * @throws NullPointerException if any argument is {@code null}. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonObject} was not in the expected * format. * @throws org.eclipse.ditto.model.things.ThingIdInvalidException if the parsed thing ID did not comply to {@link * org.eclipse.ditto.model.things.Thing#ID_REGEX}. */ public static RetrieveFeatureProperty fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return new CommandJsonDeserializer<RetrieveFeatureProperty>(TYPE, jsonObject).deserialize(() -> { final String thingId = jsonObject.getValueOrThrow(ThingQueryCommand.JsonFields.JSON_THING_ID); final String extractedFeatureId = jsonObject.getValueOrThrow(JSON_FEATURE_ID); final String extractedPointerString = jsonObject.getValueOrThrow(JSON_PROPERTY_JSON_POINTER); final JsonPointer extractedPointer = JsonFactory.newPointer(extractedPointerString); return of(thingId, extractedFeatureId, extractedPointer, dittoHeaders); }); }
/** * Creates a new {@code RetrieveFeatureProperty} from a JSON object. * * @param jsonObject the JSON object of which the command is to be created. * @param dittoHeaders the headers of the command. * @return the command. * @throws NullPointerException if any argument is {@code null}. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonObject} was not in the expected * format. * @throws org.eclipse.ditto.model.things.ThingIdInvalidException if the parsed thing ID did not comply to {@link * org.eclipse.ditto.model.things.Thing#ID_REGEX}. */ public static RetrieveFeatureProperty fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return new CommandJsonDeserializer<RetrieveFeatureProperty>(TYPE, jsonObject).deserialize(() -> { final String thingId = jsonObject.getValueOrThrow(ThingQueryCommand.JsonFields.JSON_THING_ID); final String extractedFeatureId = jsonObject.getValueOrThrow(JSON_FEATURE_ID); final String extractedPointerString = jsonObject.getValueOrThrow(JSON_PROPERTY_JSON_POINTER); final JsonPointer extractedPointer = JsonFactory.newPointer(extractedPointerString); return of(thingId, extractedFeatureId, extractedPointer, dittoHeaders); }); }
RetrieveFeatureProperty.of(thingIdFrom(adaptable), featureIdFrom(adaptable), featurePropertyPointerFrom(adaptable), dittoHeadersFrom(adaptable)));
RetrieveFeatureProperty.of(thingIdFrom(adaptable), featureIdFrom(adaptable), featurePropertyPointerFrom(adaptable), dittoHeadersFrom(adaptable)));
.of(thingId, featureId, JsonFactory.newPointer( decodePath(propertyJsonPointerStr)),