93c4cc66e41a20e30ccefa6942fc48b6f676ec5c
[jpf-core.git] / examples / Empty.groovy
1 class Empty {
2
3         // This function runs when the SmartApp is installed
4         def installed() {
5                 // This is a standard debug statement in Groovy
6                 //log.debug "Installed with settings: ${settings}"
7                 int x = 5;
8                 int y = 6;
9                 int result = x + y;
10                 return result;
11                 //initialize()
12         }
13
14         // This function is where you initialize callbacks for event listeners
15         //def initialize() {
16                 // The subscribe function takes a input, a state, and a callback method
17                 //subscribe(contact, "contact.open", openHandler)
18                 //subscribe(contact, "contact.closed", closedHandler)
19         //}
20
21         static void main(String[] args) {               
22
23                 //Empty emp = new Empty();
24                 //int result = emp.installed();
25                 println result;
26                 //println "Test"
27         }       
28 }