Timed Interrupt?


#1

I tried to redo some code from a smart-app to use a class to simplify the duplications of data and functions and after I was done I got these errors:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$startTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘SoftTimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$startTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘SoftTimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
6 errors

Any ideas?


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

It helps if you include a link to the full code, please…


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #3

(And “we” can’t create our own Classes inside a SmartApp or DTH… Only def methods).


#4

No Classes, bummer link to code …Will do next time :slight_smile: Looks like passing maps back and forth might be the solution for something similar with functions.