projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://plrg.eecs.uci.edu/home/git/smartthings-infrastructure
[smartthings-infrastructure.git]
/
SpeechSynthesis
/
SpeechSynthesis.groovy
diff --git
a/SpeechSynthesis/SpeechSynthesis.groovy
b/SpeechSynthesis/SpeechSynthesis.groovy
index acc2d80545cee93895eeb840085192cddb4da16c..1f25d79b5c873edf53c060076b4281ea383c8c5c 100644
(file)
--- a/
SpeechSynthesis/SpeechSynthesis.groovy
+++ b/
SpeechSynthesis/SpeechSynthesis.groovy
@@
-7,13
+7,15
@@
public class SpeechSynthesis {
private String label
private String displayName
private int level
private String label
private String displayName
private int level
+ private boolean oneUser
- SpeechSynthesis(String id, String label, String displayName, int level) {
+ SpeechSynthesis(String id, String label, String displayName, int level
, boolean oneUser
) {
this.id = id
this.label = label
this.displayName = displayName
this.level = level
this.id = id
this.label = label
this.displayName = displayName
this.level = level
+ this.oneUser = oneUser
}
def setLevel(int level) {
}
def setLevel(int level) {
@@
-25,5
+27,11
@@
public class SpeechSynthesis {
def speak(String message) {
println("Speech synthesis with id:$id, SPEAKING:\"$message\"!")
def speak(String message) {
println("Speech synthesis with id:$id, SPEAKING:\"$message\"!")
+ // As a conflict variable
+ if (oneUser) {
+ this.oneUser = false
+ } else {
+ this.oneUser = true
+ }
}
}
}
}