Update application from amazon-echo-bridge-compact to ha-bridge.

Try to remove most code naming away from amazon.

Fix package names being incorrect.

Added Vera query functionality, needs some fine tuning.
This commit is contained in:
Admin
2015-08-12 16:44:48 -05:00
parent 3911f802ee
commit f8bebe38c0
17 changed files with 398 additions and 164 deletions

View File

@@ -0,0 +1,17 @@
package com.bwssystems.HABridge;
import com.google.gson.Gson;
import spark.ResponseTransformer;
/*
* Implementation of a Json renderer through google GSON utility.
*/
public class JsonTransformer implements ResponseTransformer {
private Gson gson = new Gson();
@Override
public String render(Object model) {
return gson.toJson(model);
}
}