Display user name

This commit is contained in:
gac-S_Changer
2025-01-09 14:24:37 +01:00
parent 31d3ceee2b
commit 41936ef6f7
7 changed files with 64 additions and 27 deletions

View File

@@ -353,6 +353,18 @@ public class Puck extends DeviceBase {
}
id = value;
}
public static boolean isSameId(String id1, String id2){
return id1.equals(id2) || BarcodeMatcher.matchBarcodes(id1,id2);
}
public static boolean hasSameId(Puck p1, Puck p2){
return isSameId(p1.getId(), p2.getId());
}
public boolean hasSameId(Puck p){
return isSameId(getId(), p.getId());
}
public char getSegment() {
return segment;