Skip to content

Commit 8a173d5

Browse files
committed
Add missing getters to event class.
1 parent 303494a commit 8a173d5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/event.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ export class Event {
4040
return this.device;
4141
}
4242

43+
getName(): string {
44+
return this.name;
45+
}
46+
47+
getData(): Any | undefined {
48+
return this.data;
49+
}
50+
51+
getTimestamp(): string {
52+
return this.timestamp;
53+
}
54+
4355
/**
4456
* Get the event description.
4557
*

0 commit comments

Comments
 (0)