Skip to content

Instantly share code, notes, and snippets.

@jcmaslan
Created February 4, 2021 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcmaslan/930a05d1366c2038d5da790de5ac433d to your computer and use it in GitHub Desktop.
Save jcmaslan/930a05d1366c2038d5da790de5ac433d to your computer and use it in GitHub Desktop.
switch(this.event_type) {
case 0:
// We treat all subtypes as the same currently
return "entry.unlocked";
case 4:
switch(this.event_subtype) {
case 8:
case 210:
case 211:
return "entry.forcedopen";
case 10:
case 212:
case 213:
return "entry.ajar.started";
default:
break;
}
break;
default:
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment