diff --git a/src/android/CHIPTool/.idea/runConfigurations.xml b/src/android/CHIPTool/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460d8b38ac..00000000000000
--- a/src/android/CHIPTool/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt
index 72f0c0e33ab319..bb8def19a7e2c0 100644
--- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt
+++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt
@@ -9,6 +9,7 @@ import android.widget.ArrayAdapter
import android.widget.AutoCompleteTextView
import android.widget.LinearLayout
import android.widget.Toast
+import androidx.appcompat.app.AlertDialog
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.view.forEach
import androidx.fragment.app.Fragment
@@ -67,9 +68,15 @@ class ClusterDetailFragment : Fragment() {
return inflater.inflate(R.layout.cluster_detail_fragment, container, false).apply {
deviceController.setCompletionListener(GenericChipDeviceListener())
commandAutoCompleteTv.visibility = View.GONE
- clusterAutoCompleteSetup(clusterAutoCompleteTv, commandAutoCompleteTv, parameterList)
+ clusterAutoCompleteSetup(
+ clusterAutoCompleteTv,
+ commandAutoCompleteTv,
+ parameterList,
+ callbackList
+ )
commandAutoCompleteSetup(commandAutoCompleteTv, inflater, parameterList, callbackList)
invokeCommand.setOnClickListener {
+ callbackList.removeAllViews()
val commandArguments = HashMap()
parameterList.forEach {
val type =
@@ -89,7 +96,7 @@ class ClusterDetailFragment : Fragment() {
Int::class.java -> data.toInt()
String::class.java -> data
Boolean::class.java -> data.toBoolean()
- else -> null
+ else -> data
}
}
@@ -102,7 +109,8 @@ class ClusterDetailFragment : Fragment() {
private fun clusterAutoCompleteSetup(
clusterAutoComplete: AutoCompleteTextView,
commandAutoComplete: AutoCompleteTextView,
- parameterList: LinearLayout
+ parameterList: LinearLayout,
+ callbackList: LinearLayout
) {
val clusterNameList = constructHint(clusterMap)
val clusterAdapter =
@@ -113,6 +121,7 @@ class ClusterDetailFragment : Fragment() {
// when new cluster is selected, clear the command text and possible parameterList
commandAutoComplete.setText("", false)
parameterList.removeAllViews()
+ callbackList.removeAllViews()
// populate all the commands that belong to the selected cluster
val selectedCluster: String = clusterAutoComplete.adapter.getItem(position).toString()
val commandAdapter = getCommandOptions(selectedCluster)
@@ -127,8 +136,9 @@ class ClusterDetailFragment : Fragment() {
callbackList: LinearLayout
) {
commandAutoComplete.setOnItemClickListener { parent, view, position, id ->
- // when new command is selected, clear all the parameterList
+ // when new command is selected, clear all the parameterList and callbackList
parameterList.removeAllViews()
+ callbackList.removeAllViews()
selectedCluster = selectedClusterInfo.createClusterFunction.create(devicePtr, endpointId)
val selectedCommand: String = commandAutoComplete.adapter.getItem(position).toString()
selectedCommandInfo = selectedClusterInfo.commands[selectedCommand]!!
@@ -171,12 +181,39 @@ class ClusterDetailFragment : Fragment() {
callbackList: LinearLayout
) {
responseValues.forEach { (variableNameType, response) ->
- val callback =
- inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout
- callback.clusterCallbackNameTv.text = variableNameType.name
- callback.clusterCallbackDataTv.text = response.toString()
- callback.clusterCallbackTypeTv.text = variableNameType.type
- callbackList.addView(callback)
+ if (response is List<*>) {
+ if (response.size == 0) {
+ val emptyCallback =
+ inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout
+ emptyCallback.clusterCallbackNameTv.text = "Result is empty"
+ callbackList.addView(emptyCallback)
+ } else {
+ response.forEachIndexed { index, it ->
+ val objectCallback =
+ inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout
+ objectCallback.clusterCallbackNameTv.text = variableNameType.name + "[$index]"
+ val objectDeserializationString = it.toString()
+ val callbackClassName = it!!.javaClass.toString().split('$').last()
+ objectCallback.clusterCallbackDataTv.text = callbackClassName
+ objectCallback.clusterCallbackDataTv.setOnClickListener {
+ AlertDialog.Builder(requireContext())
+ .setTitle(callbackClassName)
+ .setMessage(objectDeserializationString)
+ .create()
+ .show()
+ }
+ objectCallback.clusterCallbackTypeTv.text = "List<$callbackClassName>"
+ callbackList.addView(objectCallback)
+ }
+ }
+ } else {
+ val callback =
+ inflater.inflate(R.layout.cluster_callback_item, null, false) as ConstraintLayout
+ callback.clusterCallbackNameTv.text = variableNameType.name
+ callback.clusterCallbackDataTv.text = response.toString()
+ callback.clusterCallbackTypeTv.text = variableNameType.type
+ callbackList.addView(callback)
+ }
}
}
diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt
index 27c1b14f5d43cd..1c3555009644de 100644
--- a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt
+++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt
@@ -13,8 +13,6 @@ import com.google.chip.chiptool.ChipClient
import com.google.chip.chiptool.GenericChipDeviceListener
import com.google.chip.chiptool.R
import kotlinx.coroutines.CoroutineScope
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
import com.google.chip.chiptool.clusterclient.AddressUpdateFragment
import kotlinx.android.synthetic.main.cluster_interaction_fragment.view.endpointList
@@ -94,4 +92,4 @@ class ClusterInteractionFragment : Fragment() {
showFragment(ClusterDetailFragment.newInstance(devicePtr, position))
}
}
-}
\ No newline at end of file
+}
diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml b/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml
index 13844ffaa80d12..91e8edfb4fa09c 100644
--- a/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml
+++ b/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml
@@ -6,16 +6,17 @@
+
-
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/src/controller/java/src/chip/clusterinfo/ClusterInfo.java b/src/controller/java/src/chip/clusterinfo/ClusterInfo.java
index f90a9b8e409b1b..cb4dee857cceb8 100644
--- a/src/controller/java/src/chip/clusterinfo/ClusterInfo.java
+++ b/src/controller/java/src/chip/clusterinfo/ClusterInfo.java
@@ -21,6 +21,10 @@ public Map getCommands() {
return commands;
}
+ public void combineCommands(Map newCommands) {
+ this.commands.putAll(newCommands);
+ }
+
/**
* The functional interface provides a uniform way to create cluster through create function. In
* ClusterInfoMapping, each ClusterConstructor was generated using the intended function. Using
diff --git a/src/controller/java/templates/ChipClusters-java.zapt b/src/controller/java/templates/ChipClusters-java.zapt
index 34dc0805c40266..ac79f513f4a74b 100644
--- a/src/controller/java/templates/ChipClusters-java.zapt
+++ b/src/controller/java/templates/ChipClusters-java.zapt
@@ -160,6 +160,45 @@ public class ChipClusters {
{{/if}}
{{/chip_attribute_list_entryTypes}}
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ {{#chip_attribute_list_entryTypes}}
+ {{#if isOptional}}
+ {{! TODO: Add support for optional types here }}
+ {{else if isNullable}}
+ {{! TODO: Add support for nullable types here }}
+ {{else if isArray}}
+ {{! TODO: Add support for lists here }}
+ {{else if isStruct}}
+ {{! TODO: Add support for structs here }}
+ {{else if (isOctetString type)}}
+ output.append("byte[] {{asLowerCamelCase name}}: [");
+ for (int i = 0; i < {{asLowerCamelCase name}}.length; i++) {
+ if (i != {{asLowerCamelCase name}}.length - 1) {
+ output.append({{asLowerCamelCase name}}[i]);
+ output.append(", ");
+ }
+ else {
+ output.append({{asLowerCamelCase name}}[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+ {{else if (isCharString type)}}
+ output.append("String {{asLowerCamelCase name}}: ");
+ output.append(this.{{asLowerCamelCase name}});
+ output.append("\n");
+ {{else}}
+ output.append("{{asJavaBasicType label type}} {{asLowerCamelCase name}}: ");
+ output.append(this.{{asLowerCamelCase name}});
+ output.append("\n");
+ {{/if}}
+
+ {{/chip_attribute_list_entryTypes}}
+ return output.toString();
+ }
}
{{/if}}
diff --git a/src/controller/java/templates/ClusterInfo-java.zapt b/src/controller/java/templates/ClusterInfo-java.zapt
index c1a8f924dade44..0270c88a27217f 100644
--- a/src/controller/java/templates/ClusterInfo-java.zapt
+++ b/src/controller/java/templates/ClusterInfo-java.zapt
@@ -19,6 +19,118 @@ import chip.devicecontroller.ChipClusters.DefaultClusterCallback;
public class ClusterInfoMapping {
+ public class DelegatedCharStringAttributeCallback implements ChipClusters.CharStringAttributeCallback, DelegatedClusterCallback {
+ /** Indicates a successful read for a CHAR_STRING attribute. */
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(String value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "String");
+ responseValues.put(setupPINResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedOctetStringAttributeCallback implements ChipClusters.OctetStringAttributeCallback, DelegatedClusterCallback {
+ /** Indicates a successful read for an OCTET_STRING attribute. */
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(byte[] value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "byte[]");
+ responseValues.put(setupPINResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedIntegerAttributeCallback implements ChipClusters.IntegerAttributeCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "int");
+ responseValues.put(setupPINResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedLongAttributeCallback implements ChipClusters.LongAttributeCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(long value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "long");
+ responseValues.put(setupPINResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedBooleanAttributeCallback implements ChipClusters.BooleanAttributeCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(boolean value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "boolean");
+ responseValues.put(setupPINResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
class DelegatedDefaultClusterCallback implements DefaultClusterCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -83,32 +195,78 @@ public class ClusterInfoMapping {
}
{{/chip_cluster_responses}}
+ {{#chip_server_cluster_attributes}}
+ {{#if isList}}
+ {{#if isStruct}}
+
+ {{/if}}
+
+ public class Delegated{{asUpperCamelCase name}}AttributeCallback implements ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}AttributeCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+ @Override
+ public void onSuccess(List<
+ {{#if isStruct}}
+ ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}Attribute
+ {{else}}
+ {{#if (isOctetString type)}}
+ byte[]
+ {{else if (isCharString type)}}
+ // Add String field here after ByteSpan is properly emitted in C++ layer
+ {{else}}
+ {{asJavaBasicTypeForZclType type true}}
+ {{/if}}
+ {{/if}}
+ > valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ {{#if isStruct}}
+ CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List");
+ {{else}}
+ {{#if (isOctetString type)}}
+ CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List");
+ {{else if (isCharString type)}}
+ // Add String field here after ByteSpan is properly emitted in C++ layer
+ {{else}}
+ CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List<{{asJavaBasicTypeForZclType type true}}>");
+ {{/if}}
+ {{/if}}
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+ {{/if}}
+ {{/chip_server_cluster_attributes}}
+
{{/chip_client_clusters}}
public Map getClusterMap() {
- Map clusterMap = new HashMap<>();
+ Map clusterMap = new HashMap<>();
+ getCommandMap(clusterMap);
+ getReadAttributeMap(clusterMap);
+ return clusterMap;
+ }
+
+ public Map getCommandMap(Map clusterMap) {
{{#chip_client_clusters}}
Map {{asLowerCamelCase name}}ClusterCommandInfoMap = new LinkedHashMap<>();
{{#chip_cluster_commands}}
Map {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParams = new LinkedHashMap();
{{! TODO: fill out parameter types }}
{{#if (zcl_command_arguments_count this.id)}}
- {{#if hasSpecificResponse}}
- CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase responseName}}Callback.class);
- {{else}}
- CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.DefaultClusterCallback.class);
- {{/if}}
{{#chip_cluster_command_arguments_with_structs_expanded}}
CommandParameterInfo {{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}{{asLowerCamelCase label}}CommandParameterInfo = new CommandParameterInfo("{{asLowerCamelCase label}}", {{asJavaBasicType type}}.class);
{{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}CommandParams.put("{{asLowerCamelCase label}}",{{asLowerCamelCase ../../name}}{{asLowerCamelCase ../name}}{{asLowerCamelCase label}}CommandParameterInfo);
{{#not_last}} {{/not_last}}
{{/chip_cluster_command_arguments_with_structs_expanded}}
{{else}}
- {{#if hasSpecificResponse}}
- CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase responseName}}Callback.class);
- {{else}}
- CommandParameterInfo {{asLowerCamelCase ../name}}{{asLowerCamelCase name}}CommandParameterInfo = new CommandParameterInfo("{{asUpperCamelCase ../name}}", ChipClusters.DefaultClusterCallback.class);
- {{/if}}
{{/if}}
// Populate commands
{{#if hasSpecificResponse}}
@@ -149,6 +307,37 @@ public class ClusterInfoMapping {
{{/chip_client_clusters}}
return clusterMap;
}
+
+ public Map getReadAttributeMap(Map clusterMap) {
+ {{#chip_client_clusters}}
+ Map read{{asUpperCamelCase name}}CommandInfo = new LinkedHashMap<>();
+ // read attribute
+ {{#chip_server_cluster_attributes}}
+ Map read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams = new LinkedHashMap();
+ CommandInfo read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeCommandInfo = new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.{{asUpperCamelCase ../name}}Cluster) cluster).read{{asUpperCamelCase name}}Attribute(
+ {{#if isList}}
+ (ChipClusters.{{asUpperCamelCase ../name}}Cluster.{{asUpperCamelCase name}}AttributeCallback) callback
+ {{else}}
+ (ChipClusters.{{convertAttributeCallbackTypeToJavaName chipCallback.type}}AttributeCallback) callback
+ {{/if}}
+ );
+ },
+ {{#if isList}}
+ () -> new Delegated{{asUpperCamelCase name}}AttributeCallback(),
+ {{else}}
+ () -> new Delegated{{convertAttributeCallbackTypeToJavaName chipCallback.type}}AttributeCallback(),
+ {{/if}}
+ read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}CommandParams
+ );
+ read{{asUpperCamelCase ../name}}CommandInfo.put("read{{asUpperCamelCase name}}Attribute", read{{asUpperCamelCase ../name}}{{asUpperCamelCase name}}AttributeCommandInfo);
+ {{/chip_server_cluster_attributes}}
+ // combine the read Attribute into the original commands
+ clusterMap.get("{{asLowerCamelCase name}}").combineCommands(read{{asUpperCamelCase name}}CommandInfo);
+ {{/chip_client_clusters}}
+ return clusterMap;
+ }
}
{{/if}}
\ No newline at end of file
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
index 6f5df3b2596994..188eab50f8b1c2 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
@@ -371,6 +371,24 @@ public AudioOutputListAttribute(int index, int outputType, String name) {
this.outputType = outputType;
this.name = name;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int index: ");
+ output.append(this.index);
+ output.append("\n");
+
+ output.append("int outputType: ");
+ output.append(this.outputType);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface AudioOutputListAttributeCallback {
@@ -951,6 +969,36 @@ public ActionListAttribute(
this.supportedCommands = supportedCommands;
this.status = status;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int actionID: ");
+ output.append(this.actionID);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ output.append("int type: ");
+ output.append(this.type);
+ output.append("\n");
+
+ output.append("int endpointListID: ");
+ output.append(this.endpointListID);
+ output.append("\n");
+
+ output.append("int supportedCommands: ");
+ output.append(this.supportedCommands);
+ output.append("\n");
+
+ output.append("int status: ");
+ output.append(this.status);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface ActionListAttributeCallback {
@@ -971,6 +1019,36 @@ public EndpointListAttribute(int endpointListID, String name, int type, byte[] e
this.type = type;
this.endpoints = endpoints;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int endpointListID: ");
+ output.append(this.endpointListID);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ output.append("int type: ");
+ output.append(this.type);
+ output.append("\n");
+
+ output.append("byte[] endpoints: [");
+ for (int i = 0; i < endpoints.length; i++) {
+ if (i != endpoints.length - 1) {
+ output.append(endpoints[i]);
+ output.append(", ");
+ } else {
+ output.append(endpoints[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+
+ return output.toString();
+ }
}
public interface EndpointListAttributeCallback {
@@ -2197,6 +2275,20 @@ public DeviceListAttribute(long type, int revision) {
this.type = type;
this.revision = revision;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("long type: ");
+ output.append(this.type);
+ output.append("\n");
+
+ output.append("int revision: ");
+ output.append(this.revision);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface DeviceListAttributeCallback {
@@ -2957,6 +3049,20 @@ public LabelListAttribute(String label, String value) {
this.label = label;
this.value = value;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("String label: ");
+ output.append(this.label);
+ output.append("\n");
+
+ output.append("String value: ");
+ output.append(this.value);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface LabelListAttributeCallback {
@@ -3103,6 +3209,16 @@ public static class BasicCommissioningInfoListAttribute {
public BasicCommissioningInfoListAttribute(long failSafeExpiryLengthMs) {
this.failSafeExpiryLengthMs = failSafeExpiryLengthMs;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("long failSafeExpiryLengthMs: ");
+ output.append(this.failSafeExpiryLengthMs);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface BasicCommissioningInfoListAttributeCallback {
@@ -3175,6 +3291,44 @@ public NetworkInterfacesAttribute(
this.hardwareAddress = hardwareAddress;
this.type = type;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ output.append("boolean fabricConnected: ");
+ output.append(this.fabricConnected);
+ output.append("\n");
+
+ output.append("boolean offPremiseServicesReachableIPv4: ");
+ output.append(this.offPremiseServicesReachableIPv4);
+ output.append("\n");
+
+ output.append("boolean offPremiseServicesReachableIPv6: ");
+ output.append(this.offPremiseServicesReachableIPv6);
+ output.append("\n");
+
+ output.append("byte[] hardwareAddress: [");
+ for (int i = 0; i < hardwareAddress.length; i++) {
+ if (i != hardwareAddress.length - 1) {
+ output.append(hardwareAddress[i]);
+ output.append(", ");
+ } else {
+ output.append(hardwareAddress[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+
+ output.append("int type: ");
+ output.append(this.type);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface NetworkInterfacesAttributeCallback {
@@ -3247,6 +3401,24 @@ public GroupsAttribute(int vendorId, int vendorGroupId, int groupKeySetIndex) {
this.vendorGroupId = vendorGroupId;
this.groupKeySetIndex = groupKeySetIndex;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int vendorId: ");
+ output.append(this.vendorId);
+ output.append("\n");
+
+ output.append("int vendorGroupId: ");
+ output.append(this.vendorGroupId);
+ output.append("\n");
+
+ output.append("int groupKeySetIndex: ");
+ output.append(this.groupKeySetIndex);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface GroupsAttributeCallback {
@@ -3274,6 +3446,40 @@ public GroupKeysAttribute(
this.groupKeyEpochStartTime = groupKeyEpochStartTime;
this.groupKeySecurityPolicy = groupKeySecurityPolicy;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int vendorId: ");
+ output.append(this.vendorId);
+ output.append("\n");
+
+ output.append("int groupKeyIndex: ");
+ output.append(this.groupKeyIndex);
+ output.append("\n");
+
+ output.append("byte[] groupKeyRoot: [");
+ for (int i = 0; i < groupKeyRoot.length; i++) {
+ if (i != groupKeyRoot.length - 1) {
+ output.append(groupKeyRoot[i]);
+ output.append(", ");
+ } else {
+ output.append(groupKeyRoot[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+
+ output.append("long groupKeyEpochStartTime: ");
+ output.append(this.groupKeyEpochStartTime);
+ output.append("\n");
+
+ output.append("int groupKeySecurityPolicy: ");
+ output.append(this.groupKeySecurityPolicy);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface GroupKeysAttributeCallback {
@@ -3928,6 +4134,28 @@ public MediaInputListAttribute(int index, int inputType, String name, String des
this.name = name;
this.description = description;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int index: ");
+ output.append(this.index);
+ output.append("\n");
+
+ output.append("int inputType: ");
+ output.append(this.inputType);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ output.append("String description: ");
+ output.append(this.description);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface MediaInputListAttributeCallback {
@@ -4203,6 +4431,24 @@ public SupportedModesAttribute(String label, int mode, long semanticTag) {
this.mode = mode;
this.semanticTag = semanticTag;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("String label: ");
+ output.append(this.label);
+ output.append("\n");
+
+ output.append("int mode: ");
+ output.append(this.mode);
+ output.append("\n");
+
+ output.append("long semanticTag: ");
+ output.append(this.semanticTag);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface SupportedModesAttributeCallback {
@@ -5003,6 +5249,44 @@ public FabricsListAttribute(
this.nodeId = nodeId;
this.label = label;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int fabricIndex: ");
+ output.append(this.fabricIndex);
+ output.append("\n");
+
+ output.append("byte[] rootPublicKey: [");
+ for (int i = 0; i < rootPublicKey.length; i++) {
+ if (i != rootPublicKey.length - 1) {
+ output.append(rootPublicKey[i]);
+ output.append(", ");
+ } else {
+ output.append(rootPublicKey[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+
+ output.append("int vendorId: ");
+ output.append(this.vendorId);
+ output.append("\n");
+
+ output.append("long fabricId: ");
+ output.append(this.fabricId);
+ output.append("\n");
+
+ output.append("long nodeId: ");
+ output.append(this.nodeId);
+ output.append("\n");
+
+ output.append("String label: ");
+ output.append(this.label);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface FabricsListAttributeCallback {
@@ -5861,6 +6145,32 @@ public TvChannelListAttribute(
this.callSign = callSign;
this.affiliateCallSign = affiliateCallSign;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int majorNumber: ");
+ output.append(this.majorNumber);
+ output.append("\n");
+
+ output.append("int minorNumber: ");
+ output.append(this.minorNumber);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ output.append("String callSign: ");
+ output.append(this.callSign);
+ output.append("\n");
+
+ output.append("String affiliateCallSign: ");
+ output.append(this.affiliateCallSign);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface TvChannelListAttributeCallback {
@@ -5931,6 +6241,20 @@ public TargetNavigatorListAttribute(int identifier, String name) {
this.identifier = identifier;
this.name = name;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int identifier: ");
+ output.append(this.identifier);
+ output.append("\n");
+
+ output.append("String name: ");
+ output.append(this.name);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface TargetNavigatorListAttributeCallback {
@@ -6194,6 +6518,28 @@ public ListStructOctetStringAttribute(long fabricIndex, byte[] operationalCert)
this.fabricIndex = fabricIndex;
this.operationalCert = operationalCert;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("long fabricIndex: ");
+ output.append(this.fabricIndex);
+ output.append("\n");
+
+ output.append("byte[] operationalCert: [");
+ for (int i = 0; i < operationalCert.length; i++) {
+ if (i != operationalCert.length - 1) {
+ output.append(operationalCert[i]);
+ output.append(", ");
+ } else {
+ output.append(operationalCert[i]);
+ output.append("]");
+ output.append("\n");
+ }
+ }
+
+ return output.toString();
+ }
}
public interface ListStructOctetStringAttributeCallback {
@@ -6205,6 +6551,13 @@ public interface ListStructOctetStringAttributeCallback {
public static class ListNullablesAndOptionalsStructAttribute {
public ListNullablesAndOptionalsStructAttribute() {}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+
+ return output.toString();
+ }
}
public interface ListNullablesAndOptionalsStructAttributeCallback {
@@ -6961,6 +7314,68 @@ public NeighborTableListAttribute(
this.fullNetworkData = fullNetworkData;
this.isChild = isChild;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("long extAddress: ");
+ output.append(this.extAddress);
+ output.append("\n");
+
+ output.append("long age: ");
+ output.append(this.age);
+ output.append("\n");
+
+ output.append("int rloc16: ");
+ output.append(this.rloc16);
+ output.append("\n");
+
+ output.append("long linkFrameCounter: ");
+ output.append(this.linkFrameCounter);
+ output.append("\n");
+
+ output.append("long mleFrameCounter: ");
+ output.append(this.mleFrameCounter);
+ output.append("\n");
+
+ output.append("int lqi: ");
+ output.append(this.lqi);
+ output.append("\n");
+
+ output.append("int averageRssi: ");
+ output.append(this.averageRssi);
+ output.append("\n");
+
+ output.append("int lastRssi: ");
+ output.append(this.lastRssi);
+ output.append("\n");
+
+ output.append("int frameErrorRate: ");
+ output.append(this.frameErrorRate);
+ output.append("\n");
+
+ output.append("int messageErrorRate: ");
+ output.append(this.messageErrorRate);
+ output.append("\n");
+
+ output.append("boolean rxOnWhenIdle: ");
+ output.append(this.rxOnWhenIdle);
+ output.append("\n");
+
+ output.append("boolean fullThreadDevice: ");
+ output.append(this.fullThreadDevice);
+ output.append("\n");
+
+ output.append("boolean fullNetworkData: ");
+ output.append(this.fullNetworkData);
+ output.append("\n");
+
+ output.append("boolean isChild: ");
+ output.append(this.isChild);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface NeighborTableListAttributeCallback {
@@ -7003,6 +7418,52 @@ public RouteTableListAttribute(
this.allocated = allocated;
this.linkEstablished = linkEstablished;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("long extAddress: ");
+ output.append(this.extAddress);
+ output.append("\n");
+
+ output.append("int rloc16: ");
+ output.append(this.rloc16);
+ output.append("\n");
+
+ output.append("int routerId: ");
+ output.append(this.routerId);
+ output.append("\n");
+
+ output.append("int nextHop: ");
+ output.append(this.nextHop);
+ output.append("\n");
+
+ output.append("int pathCost: ");
+ output.append(this.pathCost);
+ output.append("\n");
+
+ output.append("int LQIIn: ");
+ output.append(this.LQIIn);
+ output.append("\n");
+
+ output.append("int LQIOut: ");
+ output.append(this.LQIOut);
+ output.append("\n");
+
+ output.append("int age: ");
+ output.append(this.age);
+ output.append("\n");
+
+ output.append("boolean allocated: ");
+ output.append(this.allocated);
+ output.append("\n");
+
+ output.append("boolean linkEstablished: ");
+ output.append(this.linkEstablished);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface RouteTableListAttributeCallback {
@@ -7019,6 +7480,20 @@ public SecurityPolicyAttribute(int rotationTime, int flags) {
this.rotationTime = rotationTime;
this.flags = flags;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("int rotationTime: ");
+ output.append(this.rotationTime);
+ output.append("\n");
+
+ output.append("int flags: ");
+ output.append(this.flags);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface SecurityPolicyAttributeCallback {
@@ -7067,6 +7542,60 @@ public OperationalDatasetComponentsAttribute(
this.securityPolicyPresent = securityPolicyPresent;
this.channelMaskPresent = channelMaskPresent;
}
+
+ @Override
+ public String toString() {
+ StringBuilder output = new StringBuilder("");
+ output.append("boolean activeTimestampPresent: ");
+ output.append(this.activeTimestampPresent);
+ output.append("\n");
+
+ output.append("boolean pendingTimestampPresent: ");
+ output.append(this.pendingTimestampPresent);
+ output.append("\n");
+
+ output.append("boolean masterKeyPresent: ");
+ output.append(this.masterKeyPresent);
+ output.append("\n");
+
+ output.append("boolean networkNamePresent: ");
+ output.append(this.networkNamePresent);
+ output.append("\n");
+
+ output.append("boolean extendedPanIdPresent: ");
+ output.append(this.extendedPanIdPresent);
+ output.append("\n");
+
+ output.append("boolean meshLocalPrefixPresent: ");
+ output.append(this.meshLocalPrefixPresent);
+ output.append("\n");
+
+ output.append("boolean delayPresent: ");
+ output.append(this.delayPresent);
+ output.append("\n");
+
+ output.append("boolean panIdPresent: ");
+ output.append(this.panIdPresent);
+ output.append("\n");
+
+ output.append("boolean channelPresent: ");
+ output.append(this.channelPresent);
+ output.append("\n");
+
+ output.append("boolean pskcPresent: ");
+ output.append(this.pskcPresent);
+ output.append("\n");
+
+ output.append("boolean securityPolicyPresent: ");
+ output.append(this.securityPolicyPresent);
+ output.append("\n");
+
+ output.append("boolean channelMaskPresent: ");
+ output.append(this.channelMaskPresent);
+ output.append("\n");
+
+ return output.toString();
+ }
}
public interface OperationalDatasetComponentsAttributeCallback {
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
index 6ae483c8862550..e545384a82e601 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
@@ -28,12 +28,14 @@
import chip.devicecontroller.ChipClusters.DefaultClusterCallback;
import java.util.HashMap;
import java.util.LinkedHashMap;
+import java.util.List;
import java.util.Map;
public class ClusterInfoMapping {
- class DelegatedDefaultClusterCallback
- implements DefaultClusterCallback, DelegatedClusterCallback {
+ public class DelegatedCharStringAttributeCallback
+ implements ChipClusters.CharStringAttributeCallback, DelegatedClusterCallback {
+ /** Indicates a successful read for a CHAR_STRING attribute. */
private ClusterCommandCallback callback;
@Override
@@ -41,23 +43,23 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
this.callback = callback;
}
- // Parameters and list-adds here should be generated - refer to the template code that creates
- // each callback interface.
@Override
- public void onSuccess() {
+ public void onSuccess(String value) {
Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "String");
+ responseValues.put(setupPINResponseValue, value);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception e) {
- callback.onFailure(e);
+ public void onError(Exception error) {
+ callback.onFailure(error);
}
}
- public class DelegatedGetSetupPINResponseCallback
- implements ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedOctetStringAttributeCallback
+ implements ChipClusters.OctetStringAttributeCallback, DelegatedClusterCallback {
+ /** Indicates a successful read for an OCTET_STRING attribute. */
private ClusterCommandCallback callback;
@Override
@@ -66,10 +68,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(String setupPIN) {
+ public void onSuccess(byte[] value) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("setupPIN", "String");
- responseValues.put(setupPINResponseValue, setupPIN);
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "byte[]");
+ responseValues.put(setupPINResponseValue, value);
callback.onSuccess(responseValues);
}
@@ -79,9 +81,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedLaunchAppResponseCallback
- implements ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedIntegerAttributeCallback
+ implements ChipClusters.IntegerAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -90,12 +91,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, String data) {
+ public void onSuccess(int value) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
- responseValues.put(dataResponseValue, data);
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "int");
+ responseValues.put(setupPINResponseValue, value);
callback.onSuccess(responseValues);
}
@@ -105,9 +104,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedLaunchContentResponseCallback
- implements ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedLongAttributeCallback
+ implements ChipClusters.LongAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -116,13 +114,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(String data, int contentLaunchStatus) {
+ public void onSuccess(long value) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
- responseValues.put(dataResponseValue, data);
- CommandResponseInfo contentLaunchStatusResponseValue =
- new CommandResponseInfo("contentLaunchStatus", "int");
- responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus);
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "long");
+ responseValues.put(setupPINResponseValue, value);
callback.onSuccess(responseValues);
}
@@ -132,9 +127,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedLaunchURLResponseCallback
- implements ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedBooleanAttributeCallback
+ implements ChipClusters.BooleanAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -143,13 +137,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(String data, int contentLaunchStatus) {
+ public void onSuccess(boolean value) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
- responseValues.put(dataResponseValue, data);
- CommandResponseInfo contentLaunchStatusResponseValue =
- new CommandResponseInfo("contentLaunchStatus", "int");
- responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus);
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("value", "boolean");
+ responseValues.put(setupPINResponseValue, value);
callback.onSuccess(responseValues);
}
@@ -159,9 +150,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedRetrieveLogsResponseCallback
- implements ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback,
- DelegatedClusterCallback {
+ class DelegatedDefaultClusterCallback
+ implements DefaultClusterCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -169,29 +159,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
this.callback = callback;
}
+ // Parameters and list-adds here should be generated - refer to the template code that creates
+ // each callback interface.
@Override
- public void onSuccess(int status, byte[] content, long timeStamp, long timeSinceBoot) {
+ public void onSuccess() {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo contentResponseValue = new CommandResponseInfo("content", "byte[]");
- responseValues.put(contentResponseValue, content);
- CommandResponseInfo timeStampResponseValue = new CommandResponseInfo("timeStamp", "long");
- responseValues.put(timeStampResponseValue, timeStamp);
- CommandResponseInfo timeSinceBootResponseValue =
- new CommandResponseInfo("timeSinceBoot", "long");
- responseValues.put(timeSinceBootResponseValue, timeSinceBoot);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception e) {
+ callback.onFailure(e);
}
}
- public class DelegatedClearAllPinsResponseCallback
- implements ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback,
+ public class DelegatedGetSetupPINResponseCallback
+ implements ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -201,10 +184,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(String setupPIN) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo setupPINResponseValue = new CommandResponseInfo("setupPIN", "String");
+ responseValues.put(setupPINResponseValue, setupPIN);
callback.onSuccess(responseValues);
}
@@ -214,8 +197,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedClearAllRfidsResponseCallback
- implements ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback,
+ public class DelegatedLaunchAppResponseCallback
+ implements ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -225,10 +208,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(int status, String data) {
Map responseValues = new LinkedHashMap<>();
CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
responseValues.put(statusResponseValue, status);
+ CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
+ responseValues.put(dataResponseValue, data);
callback.onSuccess(responseValues);
}
@@ -238,8 +223,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedClearHolidayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback,
+ public class DelegatedApplicationLauncherListAttributeCallback
+ implements ChipClusters.ApplicationLauncherCluster.ApplicationLauncherListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -249,21 +234,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedClearPinResponseCallback
- implements ChipClusters.DoorLockCluster.ClearPinResponseCallback, DelegatedClusterCallback {
+ public class DelegatedAudioOutputListAttributeCallback
+ implements ChipClusters.AudioOutputCluster.AudioOutputListAttributeCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -272,21 +260,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(
+ List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedClearRfidResponseCallback
- implements ChipClusters.DoorLockCluster.ClearRfidResponseCallback, DelegatedClusterCallback {
+ public class DelegatedActionListAttributeCallback
+ implements ChipClusters.BridgedActionsCluster.ActionListAttributeCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -295,21 +288,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedClearWeekdayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback,
+ public class DelegatedEndpointListAttributeCallback
+ implements ChipClusters.BridgedActionsCluster.EndpointListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -319,21 +315,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(
+ List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedClearYeardayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback,
+ public class DelegatedLaunchContentResponseCallback
+ implements ChipClusters.ContentLauncherCluster.LaunchContentResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -343,10 +343,13 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(String data, int contentLaunchStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
+ CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
+ responseValues.put(dataResponseValue, data);
+ CommandResponseInfo contentLaunchStatusResponseValue =
+ new CommandResponseInfo("contentLaunchStatus", "int");
+ responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus);
callback.onSuccess(responseValues);
}
@@ -356,8 +359,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedGetHolidayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback,
+ public class DelegatedLaunchURLResponseCallback
+ implements ChipClusters.ContentLauncherCluster.LaunchURLResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -367,26 +370,13 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- int scheduleId,
- int status,
- long localStartTime,
- long localEndTime,
- int operatingModeDuringHoliday) {
+ public void onSuccess(String data, int contentLaunchStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
- responseValues.put(scheduleIdResponseValue, scheduleId);
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo localStartTimeResponseValue =
- new CommandResponseInfo("localStartTime", "long");
- responseValues.put(localStartTimeResponseValue, localStartTime);
- CommandResponseInfo localEndTimeResponseValue =
- new CommandResponseInfo("localEndTime", "long");
- responseValues.put(localEndTimeResponseValue, localEndTime);
- CommandResponseInfo operatingModeDuringHolidayResponseValue =
- new CommandResponseInfo("operatingModeDuringHoliday", "int");
- responseValues.put(operatingModeDuringHolidayResponseValue, operatingModeDuringHoliday);
+ CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
+ responseValues.put(dataResponseValue, data);
+ CommandResponseInfo contentLaunchStatusResponseValue =
+ new CommandResponseInfo("contentLaunchStatus", "int");
+ responseValues.put(contentLaunchStatusResponseValue, contentLaunchStatus);
callback.onSuccess(responseValues);
}
@@ -396,8 +386,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedGetLogRecordResponseCallback
- implements ChipClusters.DoorLockCluster.GetLogRecordResponseCallback,
+ public class DelegatedAcceptsHeaderListAttributeCallback
+ implements ChipClusters.ContentLauncherCluster.AcceptsHeaderListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -407,41 +397,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- int logEntryId,
- long timestamp,
- int eventType,
- int source,
- int eventIdOrAlarmCode,
- int userId,
- byte[] pin) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo logEntryIdResponseValue = new CommandResponseInfo("logEntryId", "int");
- responseValues.put(logEntryIdResponseValue, logEntryId);
- CommandResponseInfo timestampResponseValue = new CommandResponseInfo("timestamp", "long");
- responseValues.put(timestampResponseValue, timestamp);
- CommandResponseInfo eventTypeResponseValue = new CommandResponseInfo("eventType", "int");
- responseValues.put(eventTypeResponseValue, eventType);
- CommandResponseInfo sourceResponseValue = new CommandResponseInfo("source", "int");
- responseValues.put(sourceResponseValue, source);
- CommandResponseInfo eventIdOrAlarmCodeResponseValue =
- new CommandResponseInfo("eventIdOrAlarmCode", "int");
- responseValues.put(eventIdOrAlarmCodeResponseValue, eventIdOrAlarmCode);
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]");
- responseValues.put(pinResponseValue, pin);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedGetPinResponseCallback
- implements ChipClusters.DoorLockCluster.GetPinResponseCallback, DelegatedClusterCallback {
+ public class DelegatedSupportedStreamingTypesAttributeCallback
+ implements ChipClusters.ContentLauncherCluster.SupportedStreamingTypesAttributeCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -450,27 +423,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int userId, int userStatus, int userType, byte[] pin) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int");
- responseValues.put(userStatusResponseValue, userStatus);
- CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
- responseValues.put(userTypeResponseValue, userType);
- CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]");
- responseValues.put(pinResponseValue, pin);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedGetRfidResponseCallback
- implements ChipClusters.DoorLockCluster.GetRfidResponseCallback, DelegatedClusterCallback {
+ public class DelegatedDeviceListAttributeCallback
+ implements ChipClusters.DescriptorCluster.DeviceListAttributeCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -479,27 +449,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int userId, int userStatus, int userType, byte[] rfid) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int");
- responseValues.put(userStatusResponseValue, userStatus);
- CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
- responseValues.put(userTypeResponseValue, userType);
- CommandResponseInfo rfidResponseValue = new CommandResponseInfo("rfid", "byte[]");
- responseValues.put(rfidResponseValue, rfid);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedGetUserTypeResponseCallback
- implements ChipClusters.DoorLockCluster.GetUserTypeResponseCallback,
+ public class DelegatedServerListAttributeCallback
+ implements ChipClusters.DescriptorCluster.ServerListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -509,23 +476,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int userId, int userType) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
- responseValues.put(userTypeResponseValue, userType);
+ CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedGetWeekdayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback,
+ public class DelegatedClientListAttributeCallback
+ implements ChipClusters.DescriptorCluster.ClientListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -535,43 +501,22 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- int scheduleId,
- int userId,
- int status,
- int daysMask,
- int startHour,
- int startMinute,
- int endHour,
- int endMinute) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
- responseValues.put(scheduleIdResponseValue, scheduleId);
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo daysMaskResponseValue = new CommandResponseInfo("daysMask", "int");
- responseValues.put(daysMaskResponseValue, daysMask);
- CommandResponseInfo startHourResponseValue = new CommandResponseInfo("startHour", "int");
- responseValues.put(startHourResponseValue, startHour);
- CommandResponseInfo startMinuteResponseValue = new CommandResponseInfo("startMinute", "int");
- responseValues.put(startMinuteResponseValue, startMinute);
- CommandResponseInfo endHourResponseValue = new CommandResponseInfo("endHour", "int");
- responseValues.put(endHourResponseValue, endHour);
- CommandResponseInfo endMinuteResponseValue = new CommandResponseInfo("endMinute", "int");
- responseValues.put(endMinuteResponseValue, endMinute);
+ CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedGetYeardayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback,
+ public class DelegatedPartsListAttributeCallback
+ implements ChipClusters.DescriptorCluster.PartsListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -581,32 +526,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- int scheduleId, int userId, int status, long localStartTime, long localEndTime) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
- responseValues.put(scheduleIdResponseValue, scheduleId);
- CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
- responseValues.put(userIdResponseValue, userId);
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo localStartTimeResponseValue =
- new CommandResponseInfo("localStartTime", "long");
- responseValues.put(localStartTimeResponseValue, localStartTime);
- CommandResponseInfo localEndTimeResponseValue =
- new CommandResponseInfo("localEndTime", "long");
- responseValues.put(localEndTimeResponseValue, localEndTime);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedLockDoorResponseCallback
- implements ChipClusters.DoorLockCluster.LockDoorResponseCallback, DelegatedClusterCallback {
+ public class DelegatedRetrieveLogsResponseCallback
+ implements ChipClusters.DiagnosticLogsCluster.RetrieveLogsResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -615,10 +552,17 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(int status, byte[] content, long timeStamp, long timeSinceBoot) {
Map responseValues = new LinkedHashMap<>();
CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
responseValues.put(statusResponseValue, status);
+ CommandResponseInfo contentResponseValue = new CommandResponseInfo("content", "byte[]");
+ responseValues.put(contentResponseValue, content);
+ CommandResponseInfo timeStampResponseValue = new CommandResponseInfo("timeStamp", "long");
+ responseValues.put(timeStampResponseValue, timeStamp);
+ CommandResponseInfo timeSinceBootResponseValue =
+ new CommandResponseInfo("timeSinceBoot", "long");
+ responseValues.put(timeSinceBootResponseValue, timeSinceBoot);
callback.onSuccess(responseValues);
}
@@ -628,8 +572,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetHolidayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback,
+ public class DelegatedClearAllPinsResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearAllPinsResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -652,8 +596,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetPinResponseCallback
- implements ChipClusters.DoorLockCluster.SetPinResponseCallback, DelegatedClusterCallback {
+ public class DelegatedClearAllRfidsResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearAllRfidsResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -675,8 +620,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetRfidResponseCallback
- implements ChipClusters.DoorLockCluster.SetRfidResponseCallback, DelegatedClusterCallback {
+ public class DelegatedClearHolidayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearHolidayScheduleResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -698,9 +644,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetUserTypeResponseCallback
- implements ChipClusters.DoorLockCluster.SetUserTypeResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedClearPinResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearPinResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -722,9 +667,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetWeekdayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedClearRfidResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearRfidResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -746,8 +690,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetYeardayScheduleResponseCallback
- implements ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback,
+ public class DelegatedClearWeekdayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearWeekdayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -770,8 +714,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedUnlockDoorResponseCallback
- implements ChipClusters.DoorLockCluster.UnlockDoorResponseCallback, DelegatedClusterCallback {
+ public class DelegatedClearYeardayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.ClearYeardayScheduleResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -793,8 +738,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedUnlockWithTimeoutResponseCallback
- implements ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback,
+ public class DelegatedGetHolidayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.GetHolidayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -804,10 +749,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status) {
+ public void onSuccess(
+ int scheduleId,
+ int status,
+ long localStartTime,
+ long localEndTime,
+ int operatingModeDuringHoliday) {
Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
+ responseValues.put(scheduleIdResponseValue, scheduleId);
CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
responseValues.put(statusResponseValue, status);
+ CommandResponseInfo localStartTimeResponseValue =
+ new CommandResponseInfo("localStartTime", "long");
+ responseValues.put(localStartTimeResponseValue, localStartTime);
+ CommandResponseInfo localEndTimeResponseValue =
+ new CommandResponseInfo("localEndTime", "long");
+ responseValues.put(localEndTimeResponseValue, localEndTime);
+ CommandResponseInfo operatingModeDuringHolidayResponseValue =
+ new CommandResponseInfo("operatingModeDuringHoliday", "int");
+ responseValues.put(operatingModeDuringHolidayResponseValue, operatingModeDuringHoliday);
callback.onSuccess(responseValues);
}
@@ -817,8 +778,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedArmFailSafeResponseCallback
- implements ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback,
+ public class DelegatedGetLogRecordResponseCallback
+ implements ChipClusters.DoorLockCluster.GetLogRecordResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -828,12 +789,30 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(
+ int logEntryId,
+ long timestamp,
+ int eventType,
+ int source,
+ int eventIdOrAlarmCode,
+ int userId,
+ byte[] pin) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo logEntryIdResponseValue = new CommandResponseInfo("logEntryId", "int");
+ responseValues.put(logEntryIdResponseValue, logEntryId);
+ CommandResponseInfo timestampResponseValue = new CommandResponseInfo("timestamp", "long");
+ responseValues.put(timestampResponseValue, timestamp);
+ CommandResponseInfo eventTypeResponseValue = new CommandResponseInfo("eventType", "int");
+ responseValues.put(eventTypeResponseValue, eventType);
+ CommandResponseInfo sourceResponseValue = new CommandResponseInfo("source", "int");
+ responseValues.put(sourceResponseValue, source);
+ CommandResponseInfo eventIdOrAlarmCodeResponseValue =
+ new CommandResponseInfo("eventIdOrAlarmCode", "int");
+ responseValues.put(eventIdOrAlarmCodeResponseValue, eventIdOrAlarmCode);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
+ CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]");
+ responseValues.put(pinResponseValue, pin);
callback.onSuccess(responseValues);
}
@@ -843,9 +822,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedCommissioningCompleteResponseCallback
- implements ChipClusters.GeneralCommissioningCluster.CommissioningCompleteResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedGetPinResponseCallback
+ implements ChipClusters.DoorLockCluster.GetPinResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -854,12 +832,16 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int userId, int userStatus, int userType, byte[] pin) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
+ CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int");
+ responseValues.put(userStatusResponseValue, userStatus);
+ CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
+ responseValues.put(userTypeResponseValue, userType);
+ CommandResponseInfo pinResponseValue = new CommandResponseInfo("pin", "byte[]");
+ responseValues.put(pinResponseValue, pin);
callback.onSuccess(responseValues);
}
@@ -869,9 +851,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSetRegulatoryConfigResponseCallback
- implements ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedGetRfidResponseCallback
+ implements ChipClusters.DoorLockCluster.GetRfidResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -880,12 +861,16 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int userId, int userStatus, int userType, byte[] rfid) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
+ CommandResponseInfo userStatusResponseValue = new CommandResponseInfo("userStatus", "int");
+ responseValues.put(userStatusResponseValue, userStatus);
+ CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
+ responseValues.put(userTypeResponseValue, userType);
+ CommandResponseInfo rfidResponseValue = new CommandResponseInfo("rfid", "byte[]");
+ responseValues.put(rfidResponseValue, rfid);
callback.onSuccess(responseValues);
}
@@ -895,8 +880,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedAddGroupResponseCallback
- implements ChipClusters.GroupsCluster.AddGroupResponseCallback, DelegatedClusterCallback {
+ public class DelegatedGetUserTypeResponseCallback
+ implements ChipClusters.DoorLockCluster.GetUserTypeResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -905,12 +891,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId) {
+ public void onSuccess(int userId, int userType) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
+ CommandResponseInfo userTypeResponseValue = new CommandResponseInfo("userType", "int");
+ responseValues.put(userTypeResponseValue, userType);
callback.onSuccess(responseValues);
}
@@ -920,8 +906,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedGetGroupMembershipResponseCallback
- implements ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback,
+ public class DelegatedGetWeekdayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.GetWeekdayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -931,17 +917,32 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int capacity, int groupCount
- // groupList: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- ) {
+ public void onSuccess(
+ int scheduleId,
+ int userId,
+ int status,
+ int daysMask,
+ int startHour,
+ int startMinute,
+ int endHour,
+ int endMinute) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int");
- responseValues.put(capacityResponseValue, capacity);
- CommandResponseInfo groupCountResponseValue = new CommandResponseInfo("groupCount", "int");
- responseValues.put(groupCountResponseValue, groupCount);
- // groupList: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
+ responseValues.put(scheduleIdResponseValue, scheduleId);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo daysMaskResponseValue = new CommandResponseInfo("daysMask", "int");
+ responseValues.put(daysMaskResponseValue, daysMask);
+ CommandResponseInfo startHourResponseValue = new CommandResponseInfo("startHour", "int");
+ responseValues.put(startHourResponseValue, startHour);
+ CommandResponseInfo startMinuteResponseValue = new CommandResponseInfo("startMinute", "int");
+ responseValues.put(startMinuteResponseValue, startMinute);
+ CommandResponseInfo endHourResponseValue = new CommandResponseInfo("endHour", "int");
+ responseValues.put(endHourResponseValue, endHour);
+ CommandResponseInfo endMinuteResponseValue = new CommandResponseInfo("endMinute", "int");
+ responseValues.put(endMinuteResponseValue, endMinute);
callback.onSuccess(responseValues);
}
@@ -951,8 +952,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedRemoveGroupResponseCallback
- implements ChipClusters.GroupsCluster.RemoveGroupResponseCallback, DelegatedClusterCallback {
+ public class DelegatedGetYeardayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.GetYeardayScheduleResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -961,12 +963,21 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId) {
+ public void onSuccess(
+ int scheduleId, int userId, int status, long localStartTime, long localEndTime) {
Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo scheduleIdResponseValue = new CommandResponseInfo("scheduleId", "int");
+ responseValues.put(scheduleIdResponseValue, scheduleId);
+ CommandResponseInfo userIdResponseValue = new CommandResponseInfo("userId", "int");
+ responseValues.put(userIdResponseValue, userId);
CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo localStartTimeResponseValue =
+ new CommandResponseInfo("localStartTime", "long");
+ responseValues.put(localStartTimeResponseValue, localStartTime);
+ CommandResponseInfo localEndTimeResponseValue =
+ new CommandResponseInfo("localEndTime", "long");
+ responseValues.put(localEndTimeResponseValue, localEndTime);
callback.onSuccess(responseValues);
}
@@ -976,8 +987,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedViewGroupResponseCallback
- implements ChipClusters.GroupsCluster.ViewGroupResponseCallback, DelegatedClusterCallback {
+ public class DelegatedLockDoorResponseCallback
+ implements ChipClusters.DoorLockCluster.LockDoorResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -986,14 +997,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId, String groupName) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo groupNameResponseValue = new CommandResponseInfo("groupName", "String");
- responseValues.put(groupNameResponseValue, groupName);
callback.onSuccess(responseValues);
}
@@ -1003,8 +1010,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedIdentifyQueryResponseCallback
- implements ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback,
+ public class DelegatedSetHolidayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.SetHolidayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1014,10 +1021,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int timeout) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo timeoutResponseValue = new CommandResponseInfo("timeout", "int");
- responseValues.put(timeoutResponseValue, timeout);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1027,8 +1034,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedSendKeyResponseCallback
- implements ChipClusters.KeypadInputCluster.SendKeyResponseCallback, DelegatedClusterCallback {
+ public class DelegatedSetPinResponseCallback
+ implements ChipClusters.DoorLockCluster.SetPinResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1050,9 +1057,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaFastForwardResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedSetRfidResponseCallback
+ implements ChipClusters.DoorLockCluster.SetRfidResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1061,11 +1067,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1075,8 +1080,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaNextResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback,
+ public class DelegatedSetUserTypeResponseCallback
+ implements ChipClusters.DoorLockCluster.SetUserTypeResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1086,11 +1091,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1100,8 +1104,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaPauseResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback,
+ public class DelegatedSetWeekdayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.SetWeekdayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1111,11 +1115,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1125,8 +1128,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaPlayResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback,
+ public class DelegatedSetYeardayScheduleResponseCallback
+ implements ChipClusters.DoorLockCluster.SetYeardayScheduleResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1136,11 +1139,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1150,9 +1152,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaPreviousResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedUnlockDoorResponseCallback
+ implements ChipClusters.DoorLockCluster.UnlockDoorResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1161,11 +1162,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1175,8 +1175,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaRewindResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback,
+ public class DelegatedUnlockWithTimeoutResponseCallback
+ implements ChipClusters.DoorLockCluster.UnlockWithTimeoutResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1186,11 +1186,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1200,8 +1199,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaSeekResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback,
+ public class DelegatedLabelListAttributeCallback
+ implements ChipClusters.FixedLabelCluster.LabelListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1211,22 +1210,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedMediaSkipBackwardResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback,
+ public class DelegatedArmFailSafeResponseCallback
+ implements ChipClusters.GeneralCommissioningCluster.ArmFailSafeResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1236,11 +1237,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -1250,8 +1252,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaSkipForwardResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback,
+ public class DelegatedCommissioningCompleteResponseCallback
+ implements ChipClusters.GeneralCommissioningCluster.CommissioningCompleteResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1261,11 +1263,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -1275,8 +1278,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaStartOverResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback,
+ public class DelegatedSetRegulatoryConfigResponseCallback
+ implements ChipClusters.GeneralCommissioningCluster.SetRegulatoryConfigResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1286,11 +1289,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -1300,8 +1304,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedMediaStopResponseCallback
- implements ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback,
+ public class DelegatedBasicCommissioningInfoListAttributeCallback
+ implements ChipClusters.GeneralCommissioningCluster
+ .BasicCommissioningInfoListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1311,22 +1316,27 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int mediaPlaybackStatus) {
+ public void onSuccess(
+ List
+ valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo mediaPlaybackStatusResponseValue =
- new CommandResponseInfo("mediaPlaybackStatus", "int");
- responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedAddThreadNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback,
+ public class DelegatedNetworkInterfacesAttributeCallback
+ implements ChipClusters.GeneralDiagnosticsCluster.NetworkInterfacesAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1336,23 +1346,26 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(
+ List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedAddWiFiNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback,
+ public class DelegatedGroupsAttributeCallback
+ implements ChipClusters.GroupKeyManagementCluster.GroupsAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1362,23 +1375,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedDisableNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback,
+ public class DelegatedGroupKeysAttributeCallback
+ implements ChipClusters.GroupKeyManagementCluster.GroupKeysAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1388,24 +1402,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(
+ List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedEnableNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedAddGroupResponseCallback
+ implements ChipClusters.GroupsCluster.AddGroupResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1414,12 +1429,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int status, int groupId) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
callback.onSuccess(responseValues);
}
@@ -1429,8 +1444,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedRemoveNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback,
+ public class DelegatedGetGroupMembershipResponseCallback
+ implements ChipClusters.GroupsCluster.GetGroupMembershipResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1440,12 +1455,17 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int capacity, int groupCount
+ // groupList: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ ) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int");
+ responseValues.put(capacityResponseValue, capacity);
+ CommandResponseInfo groupCountResponseValue = new CommandResponseInfo("groupCount", "int");
+ responseValues.put(groupCountResponseValue, groupCount);
+ // groupList: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
callback.onSuccess(responseValues);
}
@@ -1455,9 +1475,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedScanNetworksResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedRemoveGroupResponseCallback
+ implements ChipClusters.GroupsCluster.RemoveGroupResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1466,21 +1485,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText
- // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- ) {
+ public void onSuccess(int status, int groupId) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
- // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
callback.onSuccess(responseValues);
}
@@ -1490,9 +1500,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedUpdateThreadNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedViewGroupResponseCallback
+ implements ChipClusters.GroupsCluster.ViewGroupResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1501,12 +1510,14 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int status, int groupId, String groupName) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo groupNameResponseValue = new CommandResponseInfo("groupName", "String");
+ responseValues.put(groupNameResponseValue, groupName);
callback.onSuccess(responseValues);
}
@@ -1516,8 +1527,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedUpdateWiFiNetworkResponseCallback
- implements ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback,
+ public class DelegatedIdentifyQueryResponseCallback
+ implements ChipClusters.IdentifyCluster.IdentifyQueryResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1527,12 +1538,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int errorCode, String debugText) {
+ public void onSuccess(int timeout) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
- responseValues.put(errorCodeResponseValue, errorCode);
- CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
- responseValues.put(debugTextResponseValue, debugText);
+ CommandResponseInfo timeoutResponseValue = new CommandResponseInfo("timeout", "int");
+ responseValues.put(timeoutResponseValue, timeout);
callback.onSuccess(responseValues);
}
@@ -1542,9 +1551,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedApplyUpdateResponseCallback
- implements ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback,
- DelegatedClusterCallback {
+ public class DelegatedSendKeyResponseCallback
+ implements ChipClusters.KeypadInputCluster.SendKeyResponseCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1553,13 +1561,10 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int action, long delayedActionTime) {
+ public void onSuccess(int status) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo actionResponseValue = new CommandResponseInfo("action", "int");
- responseValues.put(actionResponseValue, action);
- CommandResponseInfo delayedActionTimeResponseValue =
- new CommandResponseInfo("delayedActionTime", "long");
- responseValues.put(delayedActionTimeResponseValue, delayedActionTime);
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
callback.onSuccess(responseValues);
}
@@ -1569,8 +1574,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedQueryImageResponseCallback
- implements ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback,
+ public class DelegatedMediaInputListAttributeCallback
+ implements ChipClusters.MediaInputCluster.MediaInputListAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1580,49 +1585,24 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- int status,
- long delayedActionTime,
- String imageURI,
- long softwareVersion,
- String softwareVersionString,
- byte[] updateToken,
- boolean userConsentNeeded,
- byte[] metadataForRequestor) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo delayedActionTimeResponseValue =
- new CommandResponseInfo("delayedActionTime", "long");
- responseValues.put(delayedActionTimeResponseValue, delayedActionTime);
- CommandResponseInfo imageURIResponseValue = new CommandResponseInfo("imageURI", "String");
- responseValues.put(imageURIResponseValue, imageURI);
- CommandResponseInfo softwareVersionResponseValue =
- new CommandResponseInfo("softwareVersion", "long");
- responseValues.put(softwareVersionResponseValue, softwareVersion);
- CommandResponseInfo softwareVersionStringResponseValue =
- new CommandResponseInfo("softwareVersionString", "String");
- responseValues.put(softwareVersionStringResponseValue, softwareVersionString);
- CommandResponseInfo updateTokenResponseValue =
- new CommandResponseInfo("updateToken", "byte[]");
- responseValues.put(updateTokenResponseValue, updateToken);
- CommandResponseInfo userConsentNeededResponseValue =
- new CommandResponseInfo("userConsentNeeded", "boolean");
- responseValues.put(userConsentNeededResponseValue, userConsentNeeded);
- CommandResponseInfo metadataForRequestorResponseValue =
- new CommandResponseInfo("metadataForRequestor", "byte[]");
- responseValues.put(metadataForRequestorResponseValue, metadataForRequestor);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedAttestationResponseCallback
- implements ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback,
+ public class DelegatedMediaFastForwardResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaFastForwardResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1632,13 +1612,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(byte[] AttestationElements, byte[] Signature) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo AttestationElementsResponseValue =
- new CommandResponseInfo("AttestationElements", "byte[]");
- responseValues.put(AttestationElementsResponseValue, AttestationElements);
- CommandResponseInfo SignatureResponseValue = new CommandResponseInfo("Signature", "byte[]");
- responseValues.put(SignatureResponseValue, Signature);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1648,8 +1626,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedCertificateChainResponseCallback
- implements ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback,
+ public class DelegatedMediaNextResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaNextResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1659,11 +1637,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(byte[] Certificate) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo CertificateResponseValue =
- new CommandResponseInfo("Certificate", "byte[]");
- responseValues.put(CertificateResponseValue, Certificate);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1673,8 +1651,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedNOCResponseCallback
- implements ChipClusters.OperationalCredentialsCluster.NOCResponseCallback,
+ public class DelegatedMediaPauseResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaPauseResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1684,14 +1662,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int StatusCode, int FabricIndex, String DebugText) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo StatusCodeResponseValue = new CommandResponseInfo("StatusCode", "int");
- responseValues.put(StatusCodeResponseValue, StatusCode);
- CommandResponseInfo FabricIndexResponseValue = new CommandResponseInfo("FabricIndex", "int");
- responseValues.put(FabricIndexResponseValue, FabricIndex);
- CommandResponseInfo DebugTextResponseValue = new CommandResponseInfo("DebugText", "String");
- responseValues.put(DebugTextResponseValue, DebugText);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1701,8 +1676,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedOpCSRResponseCallback
- implements ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback,
+ public class DelegatedMediaPlayResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaPlayResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1712,14 +1687,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(byte[] NOCSRElements, byte[] AttestationSignature) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo NOCSRElementsResponseValue =
- new CommandResponseInfo("NOCSRElements", "byte[]");
- responseValues.put(NOCSRElementsResponseValue, NOCSRElements);
- CommandResponseInfo AttestationSignatureResponseValue =
- new CommandResponseInfo("AttestationSignature", "byte[]");
- responseValues.put(AttestationSignatureResponseValue, AttestationSignature);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1729,8 +1701,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedAddSceneResponseCallback
- implements ChipClusters.ScenesCluster.AddSceneResponseCallback, DelegatedClusterCallback {
+ public class DelegatedMediaPreviousResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaPreviousResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1739,14 +1712,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId, int sceneId) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
- responseValues.put(sceneIdResponseValue, sceneId);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1756,8 +1726,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedGetSceneMembershipResponseCallback
- implements ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback,
+ public class DelegatedMediaRewindResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaRewindResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1767,21 +1737,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int capacity, int groupId, int sceneCount
- // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- ) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int");
- responseValues.put(capacityResponseValue, capacity);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo sceneCountResponseValue = new CommandResponseInfo("sceneCount", "int");
- responseValues.put(sceneCountResponseValue, sceneCount);
- // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1791,8 +1751,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedRemoveAllScenesResponseCallback
- implements ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback,
+ public class DelegatedMediaSeekResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaSeekResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1802,12 +1762,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1817,8 +1776,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedRemoveSceneResponseCallback
- implements ChipClusters.ScenesCluster.RemoveSceneResponseCallback, DelegatedClusterCallback {
+ public class DelegatedMediaSkipBackwardResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaSkipBackwardResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1827,14 +1787,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId, int sceneId) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
- responseValues.put(sceneIdResponseValue, sceneId);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1844,8 +1801,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedStoreSceneResponseCallback
- implements ChipClusters.ScenesCluster.StoreSceneResponseCallback, DelegatedClusterCallback {
+ public class DelegatedMediaSkipForwardResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaSkipForwardResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1854,14 +1812,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId, int sceneId) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
- responseValues.put(sceneIdResponseValue, sceneId);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1871,8 +1826,9 @@ public void onError(Exception error) {
}
}
- public class DelegatedViewSceneResponseCallback
- implements ChipClusters.ScenesCluster.ViewSceneResponseCallback, DelegatedClusterCallback {
+ public class DelegatedMediaStartOverResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaStartOverResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1881,24 +1837,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, int groupId, int sceneId, int transitionTime, String sceneName
- // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- ) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
- responseValues.put(groupIdResponseValue, groupId);
- CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
- responseValues.put(sceneIdResponseValue, sceneId);
- CommandResponseInfo transitionTimeResponseValue =
- new CommandResponseInfo("transitionTime", "int");
- responseValues.put(transitionTimeResponseValue, transitionTime);
- CommandResponseInfo sceneNameResponseValue = new CommandResponseInfo("sceneName", "String");
- responseValues.put(sceneNameResponseValue, sceneName);
- // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1908,8 +1851,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedChangeChannelResponseCallback
- implements ChipClusters.TvChannelCluster.ChangeChannelResponseCallback,
+ public class DelegatedMediaStopResponseCallback
+ implements ChipClusters.MediaPlaybackCluster.MediaStopResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1919,15 +1862,11 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- int ErrorType) {
+ public void onSuccess(int mediaPlaybackStatus) {
Map responseValues = new LinkedHashMap<>();
- // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- CommandResponseInfo ErrorTypeResponseValue = new CommandResponseInfo("ErrorType", "int");
- responseValues.put(ErrorTypeResponseValue, ErrorType);
+ CommandResponseInfo mediaPlaybackStatusResponseValue =
+ new CommandResponseInfo("mediaPlaybackStatus", "int");
+ responseValues.put(mediaPlaybackStatusResponseValue, mediaPlaybackStatus);
callback.onSuccess(responseValues);
}
@@ -1937,8 +1876,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedNavigateTargetResponseCallback
- implements ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback,
+ public class DelegatedSupportedModesAttributeCallback
+ implements ChipClusters.ModeSelectCluster.SupportedModesAttributeCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1948,23 +1887,25 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int status, String data) {
+ public void onSuccess(List valueList) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
- responseValues.put(statusResponseValue, status);
- CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
- responseValues.put(dataResponseValue, data);
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
callback.onSuccess(responseValues);
}
@Override
- public void onError(Exception error) {
- callback.onFailure(error);
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
}
}
- public class DelegatedBooleanResponseCallback
- implements ChipClusters.TestClusterCluster.BooleanResponseCallback, DelegatedClusterCallback {
+ public class DelegatedAddThreadNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.AddThreadNetworkResponseCallback,
+ DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -1973,10 +1914,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(boolean value) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "boolean");
- responseValues.put(valueResponseValue, value);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -1986,8 +1929,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedTestAddArgumentsResponseCallback
- implements ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback,
+ public class DelegatedAddWiFiNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.AddWiFiNetworkResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -1997,21 +1940,23 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int returnValue) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int");
- responseValues.put(returnValueResponseValue, returnValue);
- callback.onSuccess(responseValues);
- }
-
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
+ callback.onSuccess(responseValues);
+ }
+
@Override
public void onError(Exception error) {
callback.onFailure(error);
}
}
- public class DelegatedTestEnumsResponseCallback
- implements ChipClusters.TestClusterCluster.TestEnumsResponseCallback,
+ public class DelegatedDisableNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.DisableNetworkResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -2021,12 +1966,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int arg1, int arg2) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo arg1ResponseValue = new CommandResponseInfo("arg1", "int");
- responseValues.put(arg1ResponseValue, arg1);
- CommandResponseInfo arg2ResponseValue = new CommandResponseInfo("arg2", "int");
- responseValues.put(arg2ResponseValue, arg2);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -2036,8 +1981,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedTestListInt8UReverseResponseCallback
- implements ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback,
+ public class DelegatedEnableNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.EnableNetworkResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -2047,13 +1992,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(
- // arg1: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
- ) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- // arg1: /* TYPE WARNING: array array defaults to */ uint8_t *
- // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -2063,8 +2007,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedTestNullableOptionalResponseCallback
- implements ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback,
+ public class DelegatedRemoveNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.RemoveNetworkResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -2074,18 +2018,12 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(boolean wasPresent, boolean wasNull, int value, int originalValue) {
+ public void onSuccess(int errorCode, String debugText) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo wasPresentResponseValue =
- new CommandResponseInfo("wasPresent", "boolean");
- responseValues.put(wasPresentResponseValue, wasPresent);
- CommandResponseInfo wasNullResponseValue = new CommandResponseInfo("wasNull", "boolean");
- responseValues.put(wasNullResponseValue, wasNull);
- CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "int");
- responseValues.put(valueResponseValue, value);
- CommandResponseInfo originalValueResponseValue =
- new CommandResponseInfo("originalValue", "int");
- responseValues.put(originalValueResponseValue, originalValue);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
callback.onSuccess(responseValues);
}
@@ -2095,8 +2033,8 @@ public void onError(Exception error) {
}
}
- public class DelegatedTestSpecificResponseCallback
- implements ChipClusters.TestClusterCluster.TestSpecificResponseCallback,
+ public class DelegatedScanNetworksResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.ScanNetworksResponseCallback,
DelegatedClusterCallback {
private ClusterCommandCallback callback;
@@ -2106,10 +2044,21 @@ public void setCallbackDelegate(ClusterCommandCallback callback) {
}
@Override
- public void onSuccess(int returnValue) {
+ public void onSuccess(int errorCode, String debugText
+ // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ ) {
Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int");
- responseValues.put(returnValueResponseValue, returnValue);
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
+ // wifiScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ // threadScanResults: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
callback.onSuccess(responseValues);
}
@@ -2119,5417 +2068,12134 @@ public void onError(Exception error) {
}
}
- public Map getClusterMap() {
- Map clusterMap = new HashMap<>();
- Map accountLoginClusterCommandInfoMap = new LinkedHashMap<>();
- Map accountLogingetSetupPINCommandParams =
- new LinkedHashMap();
- CommandParameterInfo accountLogingetSetupPINCommandParameterInfo =
- new CommandParameterInfo(
- "AccountLogin", ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback.class);
- CommandParameterInfo accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo =
- new CommandParameterInfo("tempAccountIdentifier", String.class);
- accountLogingetSetupPINCommandParams.put(
- "tempAccountIdentifier", accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo);
+ public class DelegatedUpdateThreadNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.UpdateThreadNetworkResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
- // Populate commands
- CommandInfo accountLogingetSetupPINCommandInfo =
- new CommandInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.AccountLoginCluster) cluster)
- .getSetupPIN(
- (ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback) callback,
- (String) commandArguments.get("tempAccountIdentifier"));
- },
- () -> new DelegatedGetSetupPINResponseCallback(),
- accountLogingetSetupPINCommandParams);
- accountLoginClusterCommandInfoMap.put("getSetupPIN", accountLogingetSetupPINCommandInfo);
- Map accountLoginloginCommandParams =
- new LinkedHashMap();
- CommandParameterInfo accountLoginloginCommandParameterInfo =
- new CommandParameterInfo("AccountLogin", ChipClusters.DefaultClusterCallback.class);
- CommandParameterInfo accountLoginlogintempAccountIdentifierCommandParameterInfo =
- new CommandParameterInfo("tempAccountIdentifier", String.class);
- accountLoginloginCommandParams.put(
- "tempAccountIdentifier", accountLoginlogintempAccountIdentifierCommandParameterInfo);
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
- CommandParameterInfo accountLoginloginsetupPINCommandParameterInfo =
- new CommandParameterInfo("setupPIN", String.class);
- accountLoginloginCommandParams.put("setupPIN", accountLoginloginsetupPINCommandParameterInfo);
+ @Override
+ public void onSuccess(int errorCode, String debugText) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
+ callback.onSuccess(responseValues);
+ }
- // Populate commands
- CommandInfo accountLoginloginCommandInfo =
- new CommandInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.AccountLoginCluster) cluster)
- .login(
- (DefaultClusterCallback) callback,
- (String) commandArguments.get("tempAccountIdentifier"),
- (String) commandArguments.get("setupPIN"));
- },
- () -> new DelegatedDefaultClusterCallback(),
- accountLoginloginCommandParams);
- accountLoginClusterCommandInfoMap.put("login", accountLoginloginCommandInfo);
- // Populate cluster
- ClusterInfo accountLoginClusterInfo =
- new ClusterInfo(
- (ptr, endpointId) -> new ChipClusters.AccountLoginCluster(ptr, endpointId),
- accountLoginClusterCommandInfoMap);
- clusterMap.put("accountLogin", accountLoginClusterInfo);
- Map administratorCommissioningClusterCommandInfoMap =
- new LinkedHashMap<>();
- Map
- administratorCommissioningopenBasicCommissioningWindowCommandParams =
- new LinkedHashMap();
- CommandParameterInfo
- administratorCommissioningopenBasicCommissioningWindowCommandParameterInfo =
- new CommandParameterInfo(
- "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class);
- CommandParameterInfo
- administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo =
- new CommandParameterInfo("commissioningTimeout", int.class);
- administratorCommissioningopenBasicCommissioningWindowCommandParams.put(
- "commissioningTimeout",
- administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo);
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
- // Populate commands
- CommandInfo administratorCommissioningopenBasicCommissioningWindowCommandInfo =
- new CommandInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.AdministratorCommissioningCluster) cluster)
- .openBasicCommissioningWindow(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("commissioningTimeout"));
- },
- () -> new DelegatedDefaultClusterCallback(),
- administratorCommissioningopenBasicCommissioningWindowCommandParams);
- administratorCommissioningClusterCommandInfoMap.put(
- "openBasicCommissioningWindow",
- administratorCommissioningopenBasicCommissioningWindowCommandInfo);
- Map
- administratorCommissioningopenCommissioningWindowCommandParams =
- new LinkedHashMap();
- CommandParameterInfo administratorCommissioningopenCommissioningWindowCommandParameterInfo =
- new CommandParameterInfo(
- "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class);
- CommandParameterInfo
- administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo =
- new CommandParameterInfo("commissioningTimeout", int.class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "commissioningTimeout",
- administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo);
+ public class DelegatedUpdateWiFiNetworkResponseCallback
+ implements ChipClusters.NetworkCommissioningCluster.UpdateWiFiNetworkResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
- CommandParameterInfo
- administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo =
- new CommandParameterInfo("PAKEVerifier", byte[].class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "PAKEVerifier",
- administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo);
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
- CommandParameterInfo
- administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo =
- new CommandParameterInfo("discriminator", int.class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "discriminator",
- administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo);
+ @Override
+ public void onSuccess(int errorCode, String debugText) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo errorCodeResponseValue = new CommandResponseInfo("errorCode", "int");
+ responseValues.put(errorCodeResponseValue, errorCode);
+ CommandResponseInfo debugTextResponseValue = new CommandResponseInfo("debugText", "String");
+ responseValues.put(debugTextResponseValue, debugText);
+ callback.onSuccess(responseValues);
+ }
- CommandParameterInfo
- administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo =
- new CommandParameterInfo("iterations", long.class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "iterations",
- administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo);
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
- CommandParameterInfo administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo =
- new CommandParameterInfo("salt", byte[].class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "salt", administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo);
+ public class DelegatedApplyUpdateResponseCallback
+ implements ChipClusters.OtaSoftwareUpdateProviderCluster.ApplyUpdateResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
- CommandParameterInfo
- administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo =
- new CommandParameterInfo("passcodeID", int.class);
- administratorCommissioningopenCommissioningWindowCommandParams.put(
- "passcodeID",
- administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo);
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
- // Populate commands
- CommandInfo administratorCommissioningopenCommissioningWindowCommandInfo =
- new CommandInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.AdministratorCommissioningCluster) cluster)
- .openCommissioningWindow(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("commissioningTimeout"),
- (byte[]) commandArguments.get("PAKEVerifier"),
- (Integer) commandArguments.get("discriminator"),
- (Long) commandArguments.get("iterations"),
- (byte[]) commandArguments.get("salt"),
- (Integer) commandArguments.get("passcodeID"));
- },
- () -> new DelegatedDefaultClusterCallback(),
+ @Override
+ public void onSuccess(int action, long delayedActionTime) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo actionResponseValue = new CommandResponseInfo("action", "int");
+ responseValues.put(actionResponseValue, action);
+ CommandResponseInfo delayedActionTimeResponseValue =
+ new CommandResponseInfo("delayedActionTime", "long");
+ responseValues.put(delayedActionTimeResponseValue, delayedActionTime);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedQueryImageResponseCallback
+ implements ChipClusters.OtaSoftwareUpdateProviderCluster.QueryImageResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ int status,
+ long delayedActionTime,
+ String imageURI,
+ long softwareVersion,
+ String softwareVersionString,
+ byte[] updateToken,
+ boolean userConsentNeeded,
+ byte[] metadataForRequestor) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo delayedActionTimeResponseValue =
+ new CommandResponseInfo("delayedActionTime", "long");
+ responseValues.put(delayedActionTimeResponseValue, delayedActionTime);
+ CommandResponseInfo imageURIResponseValue = new CommandResponseInfo("imageURI", "String");
+ responseValues.put(imageURIResponseValue, imageURI);
+ CommandResponseInfo softwareVersionResponseValue =
+ new CommandResponseInfo("softwareVersion", "long");
+ responseValues.put(softwareVersionResponseValue, softwareVersion);
+ CommandResponseInfo softwareVersionStringResponseValue =
+ new CommandResponseInfo("softwareVersionString", "String");
+ responseValues.put(softwareVersionStringResponseValue, softwareVersionString);
+ CommandResponseInfo updateTokenResponseValue =
+ new CommandResponseInfo("updateToken", "byte[]");
+ responseValues.put(updateTokenResponseValue, updateToken);
+ CommandResponseInfo userConsentNeededResponseValue =
+ new CommandResponseInfo("userConsentNeeded", "boolean");
+ responseValues.put(userConsentNeededResponseValue, userConsentNeeded);
+ CommandResponseInfo metadataForRequestorResponseValue =
+ new CommandResponseInfo("metadataForRequestor", "byte[]");
+ responseValues.put(metadataForRequestorResponseValue, metadataForRequestor);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedAttestationResponseCallback
+ implements ChipClusters.OperationalCredentialsCluster.AttestationResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(byte[] AttestationElements, byte[] Signature) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo AttestationElementsResponseValue =
+ new CommandResponseInfo("AttestationElements", "byte[]");
+ responseValues.put(AttestationElementsResponseValue, AttestationElements);
+ CommandResponseInfo SignatureResponseValue = new CommandResponseInfo("Signature", "byte[]");
+ responseValues.put(SignatureResponseValue, Signature);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedCertificateChainResponseCallback
+ implements ChipClusters.OperationalCredentialsCluster.CertificateChainResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(byte[] Certificate) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo CertificateResponseValue =
+ new CommandResponseInfo("Certificate", "byte[]");
+ responseValues.put(CertificateResponseValue, Certificate);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedNOCResponseCallback
+ implements ChipClusters.OperationalCredentialsCluster.NOCResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int StatusCode, int FabricIndex, String DebugText) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo StatusCodeResponseValue = new CommandResponseInfo("StatusCode", "int");
+ responseValues.put(StatusCodeResponseValue, StatusCode);
+ CommandResponseInfo FabricIndexResponseValue = new CommandResponseInfo("FabricIndex", "int");
+ responseValues.put(FabricIndexResponseValue, FabricIndex);
+ CommandResponseInfo DebugTextResponseValue = new CommandResponseInfo("DebugText", "String");
+ responseValues.put(DebugTextResponseValue, DebugText);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedOpCSRResponseCallback
+ implements ChipClusters.OperationalCredentialsCluster.OpCSRResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(byte[] NOCSRElements, byte[] AttestationSignature) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo NOCSRElementsResponseValue =
+ new CommandResponseInfo("NOCSRElements", "byte[]");
+ responseValues.put(NOCSRElementsResponseValue, NOCSRElements);
+ CommandResponseInfo AttestationSignatureResponseValue =
+ new CommandResponseInfo("AttestationSignature", "byte[]");
+ responseValues.put(AttestationSignatureResponseValue, AttestationSignature);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedFabricsListAttributeCallback
+ implements ChipClusters.OperationalCredentialsCluster.FabricsListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedTrustedRootCertificatesAttributeCallback
+ implements ChipClusters.OperationalCredentialsCluster
+ .TrustedRootCertificatesAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedActiveBatteryFaultsAttributeCallback
+ implements ChipClusters.PowerSourceCluster.ActiveBatteryFaultsAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedAddSceneResponseCallback
+ implements ChipClusters.ScenesCluster.AddSceneResponseCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int groupId, int sceneId) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
+ responseValues.put(sceneIdResponseValue, sceneId);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedGetSceneMembershipResponseCallback
+ implements ChipClusters.ScenesCluster.GetSceneMembershipResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int capacity, int groupId, int sceneCount
+ // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ ) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo capacityResponseValue = new CommandResponseInfo("capacity", "int");
+ responseValues.put(capacityResponseValue, capacity);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo sceneCountResponseValue = new CommandResponseInfo("sceneCount", "int");
+ responseValues.put(sceneCountResponseValue, sceneCount);
+ // sceneList: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedRemoveAllScenesResponseCallback
+ implements ChipClusters.ScenesCluster.RemoveAllScenesResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int groupId) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedRemoveSceneResponseCallback
+ implements ChipClusters.ScenesCluster.RemoveSceneResponseCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int groupId, int sceneId) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
+ responseValues.put(sceneIdResponseValue, sceneId);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedStoreSceneResponseCallback
+ implements ChipClusters.ScenesCluster.StoreSceneResponseCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int groupId, int sceneId) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
+ responseValues.put(sceneIdResponseValue, sceneId);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedViewSceneResponseCallback
+ implements ChipClusters.ScenesCluster.ViewSceneResponseCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, int groupId, int sceneId, int transitionTime, String sceneName
+ // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ ) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo groupIdResponseValue = new CommandResponseInfo("groupId", "int");
+ responseValues.put(groupIdResponseValue, groupId);
+ CommandResponseInfo sceneIdResponseValue = new CommandResponseInfo("sceneId", "int");
+ responseValues.put(sceneIdResponseValue, sceneId);
+ CommandResponseInfo transitionTimeResponseValue =
+ new CommandResponseInfo("transitionTime", "int");
+ responseValues.put(transitionTimeResponseValue, transitionTime);
+ CommandResponseInfo sceneNameResponseValue = new CommandResponseInfo("sceneName", "String");
+ responseValues.put(sceneNameResponseValue, sceneName);
+ // extensionFieldSets: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedChangeChannelResponseCallback
+ implements ChipClusters.TvChannelCluster.ChangeChannelResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ int ErrorType) {
+ Map responseValues = new LinkedHashMap<>();
+ // ChannelMatch: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ CommandResponseInfo ErrorTypeResponseValue = new CommandResponseInfo("ErrorType", "int");
+ responseValues.put(ErrorTypeResponseValue, ErrorType);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTvChannelListAttributeCallback
+ implements ChipClusters.TvChannelCluster.TvChannelListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedNavigateTargetResponseCallback
+ implements ChipClusters.TargetNavigatorCluster.NavigateTargetResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int status, String data) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo statusResponseValue = new CommandResponseInfo("status", "int");
+ responseValues.put(statusResponseValue, status);
+ CommandResponseInfo dataResponseValue = new CommandResponseInfo("data", "String");
+ responseValues.put(dataResponseValue, data);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTargetNavigatorListAttributeCallback
+ implements ChipClusters.TargetNavigatorCluster.TargetNavigatorListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedBooleanResponseCallback
+ implements ChipClusters.TestClusterCluster.BooleanResponseCallback, DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(boolean value) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "boolean");
+ responseValues.put(valueResponseValue, value);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTestAddArgumentsResponseCallback
+ implements ChipClusters.TestClusterCluster.TestAddArgumentsResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int returnValue) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int");
+ responseValues.put(returnValueResponseValue, returnValue);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTestEnumsResponseCallback
+ implements ChipClusters.TestClusterCluster.TestEnumsResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int arg1, int arg2) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo arg1ResponseValue = new CommandResponseInfo("arg1", "int");
+ responseValues.put(arg1ResponseValue, arg1);
+ CommandResponseInfo arg2ResponseValue = new CommandResponseInfo("arg2", "int");
+ responseValues.put(arg2ResponseValue, arg2);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTestListInt8UReverseResponseCallback
+ implements ChipClusters.TestClusterCluster.TestListInt8UReverseResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ // arg1: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ ) {
+ Map responseValues = new LinkedHashMap<>();
+ // arg1: /* TYPE WARNING: array array defaults to */ uint8_t *
+ // Conversion from this type to Java is not properly implemented yet
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTestNullableOptionalResponseCallback
+ implements ChipClusters.TestClusterCluster.TestNullableOptionalResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(boolean wasPresent, boolean wasNull, int value, int originalValue) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo wasPresentResponseValue =
+ new CommandResponseInfo("wasPresent", "boolean");
+ responseValues.put(wasPresentResponseValue, wasPresent);
+ CommandResponseInfo wasNullResponseValue = new CommandResponseInfo("wasNull", "boolean");
+ responseValues.put(wasNullResponseValue, wasNull);
+ CommandResponseInfo valueResponseValue = new CommandResponseInfo("value", "int");
+ responseValues.put(valueResponseValue, value);
+ CommandResponseInfo originalValueResponseValue =
+ new CommandResponseInfo("originalValue", "int");
+ responseValues.put(originalValueResponseValue, originalValue);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedTestSpecificResponseCallback
+ implements ChipClusters.TestClusterCluster.TestSpecificResponseCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(int returnValue) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo returnValueResponseValue = new CommandResponseInfo("returnValue", "int");
+ responseValues.put(returnValueResponseValue, returnValue);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception error) {
+ callback.onFailure(error);
+ }
+ }
+
+ public class DelegatedListInt8uAttributeCallback
+ implements ChipClusters.TestClusterCluster.ListInt8uAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedListOctetStringAttributeCallback
+ implements ChipClusters.TestClusterCluster.ListOctetStringAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedListStructOctetStringAttributeCallback
+ implements ChipClusters.TestClusterCluster.ListStructOctetStringAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedListNullablesAndOptionalsStructAttributeCallback
+ implements ChipClusters.TestClusterCluster.ListNullablesAndOptionalsStructAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedNeighborTableListAttributeCallback
+ implements ChipClusters.ThreadNetworkDiagnosticsCluster.NeighborTableListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedRouteTableListAttributeCallback
+ implements ChipClusters.ThreadNetworkDiagnosticsCluster.RouteTableListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedSecurityPolicyAttributeCallback
+ implements ChipClusters.ThreadNetworkDiagnosticsCluster.SecurityPolicyAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedOperationalDatasetComponentsAttributeCallback
+ implements ChipClusters.ThreadNetworkDiagnosticsCluster
+ .OperationalDatasetComponentsAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(
+ List
+ valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo(
+ "valueList",
+ "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public class DelegatedActiveNetworkFaultsListAttributeCallback
+ implements ChipClusters.ThreadNetworkDiagnosticsCluster
+ .ActiveNetworkFaultsListAttributeCallback,
+ DelegatedClusterCallback {
+ private ClusterCommandCallback callback;
+
+ @Override
+ public void setCallbackDelegate(ClusterCommandCallback callback) {
+ this.callback = callback;
+ }
+
+ @Override
+ public void onSuccess(List valueList) {
+ Map responseValues = new LinkedHashMap<>();
+ CommandResponseInfo commandResponseInfo =
+ new CommandResponseInfo("valueList", "List");
+
+ responseValues.put(commandResponseInfo, valueList);
+ callback.onSuccess(responseValues);
+ }
+
+ @Override
+ public void onError(Exception ex) {
+ callback.onFailure(ex);
+ }
+ }
+
+ public Map getClusterMap() {
+ Map clusterMap = new HashMap<>();
+ getCommandMap(clusterMap);
+ getReadAttributeMap(clusterMap);
+ return clusterMap;
+ }
+
+ public Map getCommandMap(Map clusterMap) {
+ Map accountLoginClusterCommandInfoMap = new LinkedHashMap<>();
+ Map accountLogingetSetupPINCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo =
+ new CommandParameterInfo("tempAccountIdentifier", String.class);
+ accountLogingetSetupPINCommandParams.put(
+ "tempAccountIdentifier", accountLogingetSetupPINtempAccountIdentifierCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo accountLogingetSetupPINCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AccountLoginCluster) cluster)
+ .getSetupPIN(
+ (ChipClusters.AccountLoginCluster.GetSetupPINResponseCallback) callback,
+ (String) commandArguments.get("tempAccountIdentifier"));
+ },
+ () -> new DelegatedGetSetupPINResponseCallback(),
+ accountLogingetSetupPINCommandParams);
+ accountLoginClusterCommandInfoMap.put("getSetupPIN", accountLogingetSetupPINCommandInfo);
+ Map accountLoginloginCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo accountLoginlogintempAccountIdentifierCommandParameterInfo =
+ new CommandParameterInfo("tempAccountIdentifier", String.class);
+ accountLoginloginCommandParams.put(
+ "tempAccountIdentifier", accountLoginlogintempAccountIdentifierCommandParameterInfo);
+
+ CommandParameterInfo accountLoginloginsetupPINCommandParameterInfo =
+ new CommandParameterInfo("setupPIN", String.class);
+ accountLoginloginCommandParams.put("setupPIN", accountLoginloginsetupPINCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo accountLoginloginCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AccountLoginCluster) cluster)
+ .login(
+ (DefaultClusterCallback) callback,
+ (String) commandArguments.get("tempAccountIdentifier"),
+ (String) commandArguments.get("setupPIN"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ accountLoginloginCommandParams);
+ accountLoginClusterCommandInfoMap.put("login", accountLoginloginCommandInfo);
+ // Populate cluster
+ ClusterInfo accountLoginClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.AccountLoginCluster(ptr, endpointId),
+ accountLoginClusterCommandInfoMap);
+ clusterMap.put("accountLogin", accountLoginClusterInfo);
+ Map administratorCommissioningClusterCommandInfoMap =
+ new LinkedHashMap<>();
+ Map
+ administratorCommissioningopenBasicCommissioningWindowCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo
+ administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo =
+ new CommandParameterInfo("commissioningTimeout", int.class);
+ administratorCommissioningopenBasicCommissioningWindowCommandParams.put(
+ "commissioningTimeout",
+ administratorCommissioningopenBasicCommissioningWindowcommissioningTimeoutCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo administratorCommissioningopenBasicCommissioningWindowCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AdministratorCommissioningCluster) cluster)
+ .openBasicCommissioningWindow(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("commissioningTimeout"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ administratorCommissioningopenBasicCommissioningWindowCommandParams);
+ administratorCommissioningClusterCommandInfoMap.put(
+ "openBasicCommissioningWindow",
+ administratorCommissioningopenBasicCommissioningWindowCommandInfo);
+ Map
+ administratorCommissioningopenCommissioningWindowCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo
+ administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo =
+ new CommandParameterInfo("commissioningTimeout", int.class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "commissioningTimeout",
+ administratorCommissioningopenCommissioningWindowcommissioningTimeoutCommandParameterInfo);
+
+ CommandParameterInfo
+ administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo =
+ new CommandParameterInfo("PAKEVerifier", byte[].class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "PAKEVerifier",
+ administratorCommissioningopenCommissioningWindowPAKEVerifierCommandParameterInfo);
+
+ CommandParameterInfo
+ administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo =
+ new CommandParameterInfo("discriminator", int.class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "discriminator",
+ administratorCommissioningopenCommissioningWindowdiscriminatorCommandParameterInfo);
+
+ CommandParameterInfo
+ administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo =
+ new CommandParameterInfo("iterations", long.class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "iterations",
+ administratorCommissioningopenCommissioningWindowiterationsCommandParameterInfo);
+
+ CommandParameterInfo administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo =
+ new CommandParameterInfo("salt", byte[].class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "salt", administratorCommissioningopenCommissioningWindowsaltCommandParameterInfo);
+
+ CommandParameterInfo
+ administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo =
+ new CommandParameterInfo("passcodeID", int.class);
+ administratorCommissioningopenCommissioningWindowCommandParams.put(
+ "passcodeID",
+ administratorCommissioningopenCommissioningWindowpasscodeIDCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo administratorCommissioningopenCommissioningWindowCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AdministratorCommissioningCluster) cluster)
+ .openCommissioningWindow(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("commissioningTimeout"),
+ (byte[]) commandArguments.get("PAKEVerifier"),
+ (Integer) commandArguments.get("discriminator"),
+ (Long) commandArguments.get("iterations"),
+ (byte[]) commandArguments.get("salt"),
+ (Integer) commandArguments.get("passcodeID"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
administratorCommissioningopenCommissioningWindowCommandParams);
administratorCommissioningClusterCommandInfoMap.put(
"openCommissioningWindow", administratorCommissioningopenCommissioningWindowCommandInfo);
Map administratorCommissioningrevokeCommissioningCommandParams =
new LinkedHashMap();
- CommandParameterInfo administratorCommissioningrevokeCommissioningCommandParameterInfo =
- new CommandParameterInfo(
- "AdministratorCommissioning", ChipClusters.DefaultClusterCallback.class);
- // Populate commands
- CommandInfo administratorCommissioningrevokeCommissioningCommandInfo =
+ // Populate commands
+ CommandInfo administratorCommissioningrevokeCommissioningCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AdministratorCommissioningCluster) cluster)
+ .revokeCommissioning((DefaultClusterCallback) callback);
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ administratorCommissioningrevokeCommissioningCommandParams);
+ administratorCommissioningClusterCommandInfoMap.put(
+ "revokeCommissioning", administratorCommissioningrevokeCommissioningCommandInfo);
+ // Populate cluster
+ ClusterInfo administratorCommissioningClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) ->
+ new ChipClusters.AdministratorCommissioningCluster(ptr, endpointId),
+ administratorCommissioningClusterCommandInfoMap);
+ clusterMap.put("administratorCommissioning", administratorCommissioningClusterInfo);
+ Map applicationBasicClusterCommandInfoMap = new LinkedHashMap<>();
+ Map applicationBasicchangeStatusCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo applicationBasicchangeStatusstatusCommandParameterInfo =
+ new CommandParameterInfo("status", int.class);
+ applicationBasicchangeStatusCommandParams.put(
+ "status", applicationBasicchangeStatusstatusCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo applicationBasicchangeStatusCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.ApplicationBasicCluster) cluster)
+ .changeStatus(
+ (DefaultClusterCallback) callback, (Integer) commandArguments.get("status"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ applicationBasicchangeStatusCommandParams);
+ applicationBasicClusterCommandInfoMap.put(
+ "changeStatus", applicationBasicchangeStatusCommandInfo);
+ // Populate cluster
+ ClusterInfo applicationBasicClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.ApplicationBasicCluster(ptr, endpointId),
+ applicationBasicClusterCommandInfoMap);
+ clusterMap.put("applicationBasic", applicationBasicClusterInfo);
+ Map applicationLauncherClusterCommandInfoMap = new LinkedHashMap<>();
+ Map applicationLauncherlaunchAppCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo applicationLauncherlaunchAppdataCommandParameterInfo =
+ new CommandParameterInfo("data", String.class);
+ applicationLauncherlaunchAppCommandParams.put(
+ "data", applicationLauncherlaunchAppdataCommandParameterInfo);
+
+ CommandParameterInfo applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo =
+ new CommandParameterInfo("catalogVendorId", int.class);
+ applicationLauncherlaunchAppCommandParams.put(
+ "catalogVendorId", applicationLauncherlaunchAppcatalogVendorIdCommandParameterInfo);
+
+ CommandParameterInfo applicationLauncherlaunchAppapplicationIdCommandParameterInfo =
+ new CommandParameterInfo("applicationId", String.class);
+ applicationLauncherlaunchAppCommandParams.put(
+ "applicationId", applicationLauncherlaunchAppapplicationIdCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo applicationLauncherlaunchAppCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.ApplicationLauncherCluster) cluster)
+ .launchApp(
+ (ChipClusters.ApplicationLauncherCluster.LaunchAppResponseCallback) callback,
+ (String) commandArguments.get("data"),
+ (Integer) commandArguments.get("catalogVendorId"),
+ (String) commandArguments.get("applicationId"));
+ },
+ () -> new DelegatedLaunchAppResponseCallback(),
+ applicationLauncherlaunchAppCommandParams);
+ applicationLauncherClusterCommandInfoMap.put(
+ "launchApp", applicationLauncherlaunchAppCommandInfo);
+ // Populate cluster
+ ClusterInfo applicationLauncherClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.ApplicationLauncherCluster(ptr, endpointId),
+ applicationLauncherClusterCommandInfoMap);
+ clusterMap.put("applicationLauncher", applicationLauncherClusterInfo);
+ Map audioOutputClusterCommandInfoMap = new LinkedHashMap<>();
+ Map audioOutputrenameOutputCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo audioOutputrenameOutputindexCommandParameterInfo =
+ new CommandParameterInfo("index", int.class);
+ audioOutputrenameOutputCommandParams.put(
+ "index", audioOutputrenameOutputindexCommandParameterInfo);
+
+ CommandParameterInfo audioOutputrenameOutputnameCommandParameterInfo =
+ new CommandParameterInfo("name", String.class);
+ audioOutputrenameOutputCommandParams.put(
+ "name", audioOutputrenameOutputnameCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo audioOutputrenameOutputCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AudioOutputCluster) cluster)
+ .renameOutput(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("index"),
+ (String) commandArguments.get("name"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ audioOutputrenameOutputCommandParams);
+ audioOutputClusterCommandInfoMap.put("renameOutput", audioOutputrenameOutputCommandInfo);
+ Map audioOutputselectOutputCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo audioOutputselectOutputindexCommandParameterInfo =
+ new CommandParameterInfo("index", int.class);
+ audioOutputselectOutputCommandParams.put(
+ "index", audioOutputselectOutputindexCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo audioOutputselectOutputCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.AudioOutputCluster) cluster)
+ .selectOutput(
+ (DefaultClusterCallback) callback, (Integer) commandArguments.get("index"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ audioOutputselectOutputCommandParams);
+ audioOutputClusterCommandInfoMap.put("selectOutput", audioOutputselectOutputCommandInfo);
+ // Populate cluster
+ ClusterInfo audioOutputClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.AudioOutputCluster(ptr, endpointId),
+ audioOutputClusterCommandInfoMap);
+ clusterMap.put("audioOutput", audioOutputClusterInfo);
+ Map barrierControlClusterCommandInfoMap = new LinkedHashMap<>();
+ Map barrierControlbarrierControlGoToPercentCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo =
+ new CommandParameterInfo("percentOpen", int.class);
+ barrierControlbarrierControlGoToPercentCommandParams.put(
+ "percentOpen", barrierControlbarrierControlGoToPercentpercentOpenCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo barrierControlbarrierControlGoToPercentCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BarrierControlCluster) cluster)
+ .barrierControlGoToPercent(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("percentOpen"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ barrierControlbarrierControlGoToPercentCommandParams);
+ barrierControlClusterCommandInfoMap.put(
+ "barrierControlGoToPercent", barrierControlbarrierControlGoToPercentCommandInfo);
+ Map barrierControlbarrierControlStopCommandParams =
+ new LinkedHashMap();
+ // Populate commands
+ CommandInfo barrierControlbarrierControlStopCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BarrierControlCluster) cluster)
+ .barrierControlStop((DefaultClusterCallback) callback);
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ barrierControlbarrierControlStopCommandParams);
+ barrierControlClusterCommandInfoMap.put(
+ "barrierControlStop", barrierControlbarrierControlStopCommandInfo);
+ // Populate cluster
+ ClusterInfo barrierControlClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.BarrierControlCluster(ptr, endpointId),
+ barrierControlClusterCommandInfoMap);
+ clusterMap.put("barrierControl", barrierControlClusterInfo);
+ Map basicClusterCommandInfoMap = new LinkedHashMap<>();
+ Map basicmfgSpecificPingCommandParams =
+ new LinkedHashMap();
+ // Populate commands
+ CommandInfo basicmfgSpecificPingCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BasicCluster) cluster)
+ .mfgSpecificPing((DefaultClusterCallback) callback);
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ basicmfgSpecificPingCommandParams);
+ basicClusterCommandInfoMap.put("mfgSpecificPing", basicmfgSpecificPingCommandInfo);
+ // Populate cluster
+ ClusterInfo basicClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.BasicCluster(ptr, endpointId),
+ basicClusterCommandInfoMap);
+ clusterMap.put("basic", basicClusterInfo);
+ Map binaryInputBasicClusterCommandInfoMap = new LinkedHashMap<>();
+ // Populate cluster
+ ClusterInfo binaryInputBasicClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.BinaryInputBasicCluster(ptr, endpointId),
+ binaryInputBasicClusterCommandInfoMap);
+ clusterMap.put("binaryInputBasic", binaryInputBasicClusterInfo);
+ Map bindingClusterCommandInfoMap = new LinkedHashMap<>();
+ Map bindingbindCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bindingbindnodeIdCommandParameterInfo =
+ new CommandParameterInfo("nodeId", long.class);
+ bindingbindCommandParams.put("nodeId", bindingbindnodeIdCommandParameterInfo);
+
+ CommandParameterInfo bindingbindgroupIdCommandParameterInfo =
+ new CommandParameterInfo("groupId", int.class);
+ bindingbindCommandParams.put("groupId", bindingbindgroupIdCommandParameterInfo);
+
+ CommandParameterInfo bindingbindendpointIdCommandParameterInfo =
+ new CommandParameterInfo("endpointId", int.class);
+ bindingbindCommandParams.put("endpointId", bindingbindendpointIdCommandParameterInfo);
+
+ CommandParameterInfo bindingbindclusterIdCommandParameterInfo =
+ new CommandParameterInfo("clusterId", long.class);
+ bindingbindCommandParams.put("clusterId", bindingbindclusterIdCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bindingbindCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BindingCluster) cluster)
+ .bind(
+ (DefaultClusterCallback) callback,
+ (Long) commandArguments.get("nodeId"),
+ (Integer) commandArguments.get("groupId"),
+ (Integer) commandArguments.get("endpointId"),
+ (Long) commandArguments.get("clusterId"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bindingbindCommandParams);
+ bindingClusterCommandInfoMap.put("bind", bindingbindCommandInfo);
+ Map bindingunbindCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bindingunbindnodeIdCommandParameterInfo =
+ new CommandParameterInfo("nodeId", long.class);
+ bindingunbindCommandParams.put("nodeId", bindingunbindnodeIdCommandParameterInfo);
+
+ CommandParameterInfo bindingunbindgroupIdCommandParameterInfo =
+ new CommandParameterInfo("groupId", int.class);
+ bindingunbindCommandParams.put("groupId", bindingunbindgroupIdCommandParameterInfo);
+
+ CommandParameterInfo bindingunbindendpointIdCommandParameterInfo =
+ new CommandParameterInfo("endpointId", int.class);
+ bindingunbindCommandParams.put("endpointId", bindingunbindendpointIdCommandParameterInfo);
+
+ CommandParameterInfo bindingunbindclusterIdCommandParameterInfo =
+ new CommandParameterInfo("clusterId", long.class);
+ bindingunbindCommandParams.put("clusterId", bindingunbindclusterIdCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bindingunbindCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BindingCluster) cluster)
+ .unbind(
+ (DefaultClusterCallback) callback,
+ (Long) commandArguments.get("nodeId"),
+ (Integer) commandArguments.get("groupId"),
+ (Integer) commandArguments.get("endpointId"),
+ (Long) commandArguments.get("clusterId"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bindingunbindCommandParams);
+ bindingClusterCommandInfoMap.put("unbind", bindingunbindCommandInfo);
+ // Populate cluster
+ ClusterInfo bindingClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.BindingCluster(ptr, endpointId),
+ bindingClusterCommandInfoMap);
+ clusterMap.put("binding", bindingClusterInfo);
+ Map booleanStateClusterCommandInfoMap = new LinkedHashMap<>();
+ // Populate cluster
+ ClusterInfo booleanStateClusterInfo =
+ new ClusterInfo(
+ (ptr, endpointId) -> new ChipClusters.BooleanStateCluster(ptr, endpointId),
+ booleanStateClusterCommandInfoMap);
+ clusterMap.put("booleanState", booleanStateClusterInfo);
+ Map bridgedActionsClusterCommandInfoMap = new LinkedHashMap<>();
+ Map bridgedActionsdisableActionCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bridgedActionsdisableActionactionIDCommandParameterInfo =
+ new CommandParameterInfo("actionID", int.class);
+ bridgedActionsdisableActionCommandParams.put(
+ "actionID", bridgedActionsdisableActionactionIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsdisableActioninvokeIDCommandParameterInfo =
+ new CommandParameterInfo("invokeID", long.class);
+ bridgedActionsdisableActionCommandParams.put(
+ "invokeID", bridgedActionsdisableActioninvokeIDCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bridgedActionsdisableActionCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BridgedActionsCluster) cluster)
+ .disableAction(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("actionID"),
+ (Long) commandArguments.get("invokeID"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bridgedActionsdisableActionCommandParams);
+ bridgedActionsClusterCommandInfoMap.put(
+ "disableAction", bridgedActionsdisableActionCommandInfo);
+ Map bridgedActionsdisableActionWithDurationCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo =
+ new CommandParameterInfo("actionID", int.class);
+ bridgedActionsdisableActionWithDurationCommandParams.put(
+ "actionID", bridgedActionsdisableActionWithDurationactionIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo =
+ new CommandParameterInfo("invokeID", long.class);
+ bridgedActionsdisableActionWithDurationCommandParams.put(
+ "invokeID", bridgedActionsdisableActionWithDurationinvokeIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsdisableActionWithDurationdurationCommandParameterInfo =
+ new CommandParameterInfo("duration", long.class);
+ bridgedActionsdisableActionWithDurationCommandParams.put(
+ "duration", bridgedActionsdisableActionWithDurationdurationCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bridgedActionsdisableActionWithDurationCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BridgedActionsCluster) cluster)
+ .disableActionWithDuration(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("actionID"),
+ (Long) commandArguments.get("invokeID"),
+ (Long) commandArguments.get("duration"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bridgedActionsdisableActionWithDurationCommandParams);
+ bridgedActionsClusterCommandInfoMap.put(
+ "disableActionWithDuration", bridgedActionsdisableActionWithDurationCommandInfo);
+ Map bridgedActionsenableActionCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bridgedActionsenableActionactionIDCommandParameterInfo =
+ new CommandParameterInfo("actionID", int.class);
+ bridgedActionsenableActionCommandParams.put(
+ "actionID", bridgedActionsenableActionactionIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsenableActioninvokeIDCommandParameterInfo =
+ new CommandParameterInfo("invokeID", long.class);
+ bridgedActionsenableActionCommandParams.put(
+ "invokeID", bridgedActionsenableActioninvokeIDCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bridgedActionsenableActionCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BridgedActionsCluster) cluster)
+ .enableAction(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("actionID"),
+ (Long) commandArguments.get("invokeID"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bridgedActionsenableActionCommandParams);
+ bridgedActionsClusterCommandInfoMap.put("enableAction", bridgedActionsenableActionCommandInfo);
+ Map bridgedActionsenableActionWithDurationCommandParams =
+ new LinkedHashMap();
+ CommandParameterInfo bridgedActionsenableActionWithDurationactionIDCommandParameterInfo =
+ new CommandParameterInfo("actionID", int.class);
+ bridgedActionsenableActionWithDurationCommandParams.put(
+ "actionID", bridgedActionsenableActionWithDurationactionIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo =
+ new CommandParameterInfo("invokeID", long.class);
+ bridgedActionsenableActionWithDurationCommandParams.put(
+ "invokeID", bridgedActionsenableActionWithDurationinvokeIDCommandParameterInfo);
+
+ CommandParameterInfo bridgedActionsenableActionWithDurationdurationCommandParameterInfo =
+ new CommandParameterInfo("duration", long.class);
+ bridgedActionsenableActionWithDurationCommandParams.put(
+ "duration", bridgedActionsenableActionWithDurationdurationCommandParameterInfo);
+
+ // Populate commands
+ CommandInfo bridgedActionsenableActionWithDurationCommandInfo =
+ new CommandInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.BridgedActionsCluster) cluster)
+ .enableActionWithDuration(
+ (DefaultClusterCallback) callback,
+ (Integer) commandArguments.get("actionID"),
+ (Long) commandArguments.get("invokeID"),
+ (Long) commandArguments.get("duration"));
+ },
+ () -> new DelegatedDefaultClusterCallback(),
+ bridgedActionsenableActionWithDurationCommandParams);
+ bridgedActionsClusterCommandInfoMap.put(
+ "enableActionWithDuration", bridgedActionsenableActionWithDurationCommandInfo);
+ Map