Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. enum Status : {
  2. OK = 1,
  3. NOT_OK = 2,
  4. }
  5.  
  6. namespace Status {
  7.  
  8. function Color(status : Status) {
  9.  
  10. if(status == Status.OK)
  11. return 'green';
  12. else
  13. return 'red';
  14.  
  15. }
  16.  
  17. }
  18.  
  19. getColor(status : Status) {
  20. return StatusUtil(status);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement