class LocationVar {
private int contactBookEnabled
- private String modes
+ private def modes
private String mode
private List contacts
private List phoneNumbers
private Phrase helloHome
LocationVar() {
- this.modes = "'home', 'away', 'night'"
+ this.modes = [[name: "home"],[name: "away"],[name: "night"]]
this.mode = "home"
this.helloHome = new Phrase()
this.contactBookEnabled = 1