feat: ability to disable monitoring cmds (#840)
This commit is contained in:
@@ -112,13 +112,14 @@ class SpiAdapter extends TypeAdapter<Spi> {
|
||||
envs: (fields[12] as Map?)?.cast<String, String>(),
|
||||
id: fields[13] == null ? '' : fields[13] as String,
|
||||
customSystemType: fields[14] as SystemType?,
|
||||
disabledCmdTypes: (fields[15] as List?)?.cast<String>(),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, Spi obj) {
|
||||
writer
|
||||
..writeByte(15)
|
||||
..writeByte(16)
|
||||
..writeByte(0)
|
||||
..write(obj.name)
|
||||
..writeByte(1)
|
||||
@@ -148,7 +149,9 @@ class SpiAdapter extends TypeAdapter<Spi> {
|
||||
..writeByte(13)
|
||||
..write(obj.id)
|
||||
..writeByte(14)
|
||||
..write(obj.customSystemType);
|
||||
..write(obj.customSystemType)
|
||||
..writeByte(15)
|
||||
..write(obj.disabledCmdTypes);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -27,7 +27,7 @@ types:
|
||||
index: 4
|
||||
Spi:
|
||||
typeId: 3
|
||||
nextIndex: 15
|
||||
nextIndex: 16
|
||||
fields:
|
||||
name:
|
||||
index: 0
|
||||
@@ -59,6 +59,8 @@ types:
|
||||
index: 13
|
||||
customSystemType:
|
||||
index: 14
|
||||
disabledCmdTypes:
|
||||
index: 15
|
||||
VirtKey:
|
||||
typeId: 4
|
||||
nextIndex: 45
|
||||
|
||||
Reference in New Issue
Block a user