/** * Creates a response to a {@link RetrieveAttributes} command. * * @param thingId the Thing ID of the retrieved attributes. * @param attributes the retrieved Attributes. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveAttributesResponse of(final String thingId, final Attributes attributes, final DittoHeaders dittoHeaders) { return new RetrieveAttributesResponse(thingId, attributes, dittoHeaders); }
/** * Creates a response to a {@link RetrieveAttributes} command. * * @param thingId the Thing ID of the retrieved attributes. * @param attributes the retrieved Attributes. * @param dittoHeaders the headers of the preceding command. * @return the response. * @throws NullPointerException if any argument is {@code null}. */ public static RetrieveAttributesResponse of(final String thingId, final Attributes attributes, final DittoHeaders dittoHeaders) { return new RetrieveAttributesResponse(thingId, attributes, dittoHeaders); }