mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-21 01:05:43 +00:00
Try to remove most code naming away from amazon. Fix package names being incorrect. Added Vera query functionality, needs some fine tuning.
17 lines
363 B
Java
17 lines
363 B
Java
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);
|
|
}
|
|
|
|
} |