/** * Creates a response to a {@link RetrieveAttribute} command. * * @param thingId the Thing ID of the retrieved attribute. * @param attributePointer the JSON pointer of the attribute to retrieve. * @param attributeValue the retrieved Attribute value. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveAttributeResponse of(final String thingId, final JsonPointer attributePointer, final JsonValue attributeValue, final DittoHeaders dittoHeaders) { return new RetrieveAttributeResponse(thingId, attributePointer, attributeValue, HttpStatusCode.OK, dittoHeaders); }
/** * Creates a response to a {@link RetrieveAttribute} command. * * @param thingId the Thing ID of the retrieved attribute. * @param attributePointer the JSON pointer of the attribute to retrieve. * @param attributeValue the retrieved Attribute value. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveAttributeResponse of(final String thingId, final JsonPointer attributePointer, final JsonValue attributeValue, final DittoHeaders dittoHeaders) { return new RetrieveAttributeResponse(thingId, attributePointer, attributeValue, HttpStatusCode.OK, dittoHeaders); }