Store in GIT

This commit is contained in:
2026-06-17 16:11:25 +02:00
parent 9998fbd104
commit 2418284092
115 changed files with 3466 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
import { Plane } from './plane.class';
export class Reader {
id:number;
reader_id:string;
plane:Plane;
constructor(id: number,
reader_id: string,
plane:Plane) {
this.id = id;
this.reader_id = reader_id;
this.plane = plane;
}
public equals(other:Reader): boolean
{
if(other)
{
var keySet1 = Object.keys(this);
var keySet2 = Object.keys(other);
var j = 0;
var isTheSame = true;
for(j; j < keySet1.length; j++) {
if (this[keySet1[j]] !== other[keySet2[j]]) {
// Shit is not the same
isTheSame = false;
}
}
return isTheSame;
}
return false;
}
public static toReader(r:any): Reader{
let plane:Plane = null;
if(r.PLANE != null)
plane = Plane.toPlane(r.PLANE);
let reader = new Reader(r.ID, r.READER_ID, plane)
//console.log('Parsed reader:', reader);
return reader;
}
}