Skip to content

Commit 151994c

Browse files
Add missing setter call
1 parent 0fb2414 commit 151994c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/controller/java/AndroidDeviceControllerWrapper.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ CHIP_ERROR AndroidDeviceControllerWrapper::ApplyICDRegistrationInfo(chip::Contro
568568
clientType = static_cast<chip::app::Clusters::IcdManagement::ClientTypeEnum>(
569569
chip::JniReferences::GetInstance().ShortToPrimitive(jClientType));
570570
}
571+
params.SetICDClientType(clientType);
571572

572573
return err;
573574
}

src/controller/java/src/chip/devicecontroller/ICDDeviceInfo.java

+12
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public int getBitIndex() {
6262
private final long icdNodeId;
6363
private final long icdCounter;
6464
private final long monitoredSubject;
65+
private final Short clientType;
6566
private final long fabricId;
6667
private final int fabricIndex;
6768

@@ -75,6 +76,7 @@ public int getBitIndex() {
7576
long icdNodeId,
7677
long icdCounter,
7778
long monitoredSubject,
79+
Short clientType,
7880
long fabricId,
7981
int fabricIndex) {
8082
this.symmetricKey = symmetricKey;
@@ -86,6 +88,7 @@ public int getBitIndex() {
8688
this.icdNodeId = icdNodeId;
8789
this.icdCounter = icdCounter;
8890
this.monitoredSubject = monitoredSubject;
91+
this.clientType = clientType;
8992
this.fabricId = fabricId;
9093
this.fabricIndex = fabricIndex;
9194
}
@@ -100,6 +103,7 @@ public int getBitIndex() {
100103
long icdNodeId,
101104
long icdCounter,
102105
long monitoredSubject,
106+
Short clientType,
103107
long fabricId,
104108
int fabricIndex) {
105109
this.symmetricKey = symmetricKey;
@@ -110,6 +114,7 @@ public int getBitIndex() {
110114
this.icdNodeId = icdNodeId;
111115
this.icdCounter = icdCounter;
112116
this.monitoredSubject = monitoredSubject;
117+
this.clientType = clientType;
113118
this.fabricId = fabricId;
114119
this.fabricIndex = fabricIndex;
115120

@@ -167,6 +172,11 @@ public long getMonitoredSubject() {
167172
return monitoredSubject;
168173
}
169174

175+
/** Returns the ClientType. */
176+
public Short getClientType() {
177+
return clientType
178+
}
179+
170180
/** Returns the Fabric Id */
171181
public long getFabricId() {
172182
return fabricId;
@@ -190,6 +200,8 @@ public String toString() {
190200
+ icdCounter
191201
+ "\n\tmonitoredSubject : "
192202
+ monitoredSubject
203+
+ "\n clientType : "
204+
+ clientType
193205
+ "\n\tfabricId : "
194206
+ fabricId
195207
+ "\n\tfabricIndex : "

0 commit comments

Comments
 (0)