Last active
December 6, 2017 15:51
-
-
Save weblabtechnology/d91db0af8ca5ab1b26943a7909791a25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum EventType { | |
TEST_EVENT, | |
GET_USER_INFO, | |
} | |
class Event { | |
private type: EventType; | |
private payload: any; | |
constructor(type: EventType, payload: any) { | |
this.type = type; | |
this.payload = payload; | |
} | |
public getType(): EventType { return this.type; } | |
public getPayload(): any { return this.payload; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment