import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message informs the bus clients that Mycroft
* is actively listening and trying to do STT.
}
public static class Context {
- public String client_name = "";
+ @SerializedName("client_name")
+ public String clientName = "";
public String source = "";
public String destination = "";
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message informs the bus clients that Mycroft
* finished listening to the mic.
}
public static class Context {
- public String client_name = "";
+ @SerializedName("client_name")
+ public String clientName = "";
public String source = "";
public String destination = "";
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message is sent to the skills
* module to trigger an intent from a text.
public MessageRecognizerLoopUtterance(String utterance) {
this();
this.data.utterances.add(utterance);
- this.context.client_name = "java_api";
+ this.context.clientName = "java_api";
this.context.source = "audio";
this.context.destination.add("skills");
}
}
public static class Context {
- public String client_name = "";
+ @SerializedName("client_name")
+ public String clientName = "";
public String source = "";
public List<String> destination = new ArrayList<>();
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message is sent to the Mycroft audio module
* to trigger a TTS action.
public static class Data {
public String utterance = "";
- public String expect_response = "";
+ @SerializedName("expect_response")
+ public String expectResponse = "";
};
public static class Context {
- public String client_name = "";
+ @SerializedName("client_name")
+ public String clientName = "";
public List<String> source = new ArrayList<>();
public String destination = "";
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message asks Mycroft to decrease the volume by 10%
*
}
public static class Data {
- public Boolean play_sound = true;
+ @SerializedName("play_sound")
+ public Boolean playSound = true;
}
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message asks Mycroft to increase the volume by 10%
*
}
public static class Data {
- public Boolean play_sound = true;
+ @SerializedName("play_sound")
+ public Boolean playSound = true;
}
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message asks Mycroft to mute the volume
*
}
public static class Data {
- public Boolean speak_message = false;
+ @SerializedName("speak_messsage")
+ public Boolean speakMesssage = false;
}
}
import org.openhab.binding.mycroft.internal.api.MessageType;
+import com.google.gson.annotations.SerializedName;
+
/**
* This message asks Mycroft to unmute the volume
*
}
public static class Data {
- public Boolean speak_message = false;
+ @SerializedName("speak_messsage")
+ public Boolean speakMessage = false;
}
}