Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Status : {
- OK = 1,
- NOT_OK = 2,
- }
- namespace Status {
- function Color(status : Status) {
- if(status == Status.OK)
- return 'green';
- else
- return 'red';
- }
- }
- getColor(status : Status) {
- return StatusUtil(status);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement