Optional controller attributes for THING_CREATED (#1154)
* added optional attributes payload to THING_CREATED DMF message Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * added optional attributes unit test for THING_CREATED message handler Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * extended Target interface with getControllerAttributes method, extended DMF message handler integration tests Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * updated hawkbit docs Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * fixed review findings Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io>
This commit is contained in:
@@ -23,6 +23,9 @@ public class DmfCreateThing {
|
||||
@JsonProperty
|
||||
private String name;
|
||||
|
||||
@JsonProperty
|
||||
private DmfAttributeUpdate attributeUpdate;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -31,4 +34,11 @@ public class DmfCreateThing {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public DmfAttributeUpdate getAttributeUpdate() {
|
||||
return attributeUpdate;
|
||||
}
|
||||
|
||||
public void setAttributeUpdate(final DmfAttributeUpdate attributeUpdate) {
|
||||
this.attributeUpdate = attributeUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user