/** * Creates a response to a {@link RetrieveFeatureProperties} command. * * @param thingId the Thing ID of the retrieved feature properties. * @param featureId the identifier of the Feature whose Properties were retrieved. * @param featureProperties the retrieved FeatureProperties. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveFeaturePropertiesResponse of(final String thingId, final String featureId, final FeatureProperties featureProperties, final DittoHeaders dittoHeaders) { return new RetrieveFeaturePropertiesResponse(thingId, featureId, featureProperties, dittoHeaders); }
/** * Creates a response to a {@link RetrieveFeatureProperties} command. * * @param thingId the Thing ID of the retrieved feature properties. * @param featureId the identifier of the Feature whose Properties were retrieved. * @param featureProperties the retrieved FeatureProperties. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveFeaturePropertiesResponse of(final String thingId, final String featureId, final FeatureProperties featureProperties, final DittoHeaders dittoHeaders) { return new RetrieveFeaturePropertiesResponse(thingId, featureId, featureProperties, dittoHeaders); }