-
-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathEventType.ts
More file actions
25 lines (24 loc) · 577 Bytes
/
EventType.ts
File metadata and controls
25 lines (24 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export enum EventType {
Major = 'MAJOR',
InternationalLAN = 'INTLLAN',
RegionalLAN = 'REGIONALLAN',
LocalLAN = 'LOCALLAN',
Online = 'ONLINE',
Other = 'OTHER'
}
export const fromText = (str: string): EventType | undefined => {
switch (str) {
case 'Online':
return EventType.Online
case 'Intl. LAN':
return EventType.InternationalLAN
case 'Local LAN':
return EventType.LocalLAN
case 'Reg. LAN':
return EventType.RegionalLAN
case 'Major':
return EventType.Major
case 'Other':
return EventType.Other
}
}