Ekeon
gson + williamChart
Gson : json convert to java object
WilliamChart : android chart library
public TreeMap<String, Float> getDummyList() { return dummyList; }
public void setDummyList(TreeMap<String, Float> dummyList) { this.dummyList = dummyList; }
public float getDummyCount() { return dummyCount; }
public void setDummyCount(float dummyCount) { this.dummyCount = dummyCount; }
public Integer getDummydummy() { return dummydummy; }
public void setDummydummy(Integer dummydummy) { this.dummydummy = dummydummy; }
}
public void setDummyListModel(DummyListModel dummyListModel) { this.dummyListModel = dummyListModel; }
public DummyListModel getDummyListModel() { return commentCount; }
public DummyData getDummyDataModel() { return dummydatamodel; }
public void setDummyDataModel(DummyDataModel dummydatamodel) { this.dummydatamodel = dummydatamodel; } }
private final static String dummyjson = "dummyjson"//예제 json;
public DummyJsonModel getDummyModel() {
Gson gson = new Gson();
DummyJsonModel dummyJsonModel = gson.fromJson(dummyjson, DummyJsonModel.class);
return dummyJsonModel == null ? null : dummyJsonModel;
}