18 lines
299 B
TypeScript
18 lines
299 B
TypeScript
export class Port {
|
|
|
|
|
|
public id: string;
|
|
public value: number;
|
|
public connected: boolean;
|
|
public type: number | null;
|
|
|
|
|
|
constructor (id: string, value: number) {
|
|
this.id = id;
|
|
this.value = value;
|
|
this.connected = false;
|
|
this.type = null;
|
|
}
|
|
|
|
}
|