-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional qr code info parsing to SetupPayload-JNI (#1470)
* Add optional qr code info parsing to SetupPayload-JNI Parse optional qr code info out of native setup payload object and make it available to SetupPayload java class. * Fix missing emty constructor
- Loading branch information
1 parent
8634c55
commit 9d4ffab
Showing
4 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/setup_payload/java/src/chip/setuppayload/OptionalQRCodeInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package chip.setuppayload; | ||
|
||
public class OptionalQRCodeInfo { | ||
enum optionalQRCodeInfoType { | ||
optionalQRCodeInfoTypeUnknown, | ||
optionalQRCodeInfoTypeString, | ||
optionalQRCodeInfoTypeInt32, | ||
optionalQRCodeInfoTypeInt64, | ||
optionalQRCodeInfoTypeUInt32, | ||
optionalQRCodeInfoTypeUInt64 | ||
}; | ||
|
||
public int tag; | ||
public optionalQRCodeInfoType type; | ||
public String data; | ||
public int int32; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters