opt.: collapse custom cmd output

This commit is contained in:
lollipopkit
2024-05-09 16:03:33 +08:00
parent dc16574a04
commit 91a9d5aab5
7 changed files with 87 additions and 36 deletions

View File

@@ -63,4 +63,17 @@ final class ServerCustom {
String toString() {
return toJson().toString();
}
@override
bool operator ==(Object other) {
return other is ServerCustom &&
//other.temperature == temperature &&
other.pveAddr == pveAddr &&
other.pveIgnoreCert == pveIgnoreCert &&
other.cmds == cmds &&
other.preferTempDev == preferTempDev;
}
@override
int get hashCode => toString().hashCode;
}