45 lines
819 B
Java
45 lines
819 B
Java
package com.eveningoutpost.dexdrip.Models;
|
|
|
|
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.GsonBuilder;
|
|
|
|
import java.util.List;
|
|
|
|
class HistoricBg {
|
|
|
|
public int quality;
|
|
public int time;
|
|
public double bg;
|
|
}
|
|
|
|
class OOPResults {
|
|
double currentBg;
|
|
int currentTime;
|
|
int currentTrend;
|
|
HistoricBg [] historicBg;
|
|
long timestamp;
|
|
String serialNumber;
|
|
|
|
String toGson() {
|
|
Gson gson = new GsonBuilder().create();
|
|
return gson.toJson(this);
|
|
}
|
|
}
|
|
|
|
public class OOPResultsContainer {
|
|
OOPResultsContainer() {
|
|
oOPResultsArray = new OOPResults[0];
|
|
version = 1;
|
|
}
|
|
|
|
String toGson() {
|
|
Gson gson = new GsonBuilder().create();
|
|
return gson.toJson(this);
|
|
}
|
|
|
|
int version;
|
|
String Message;
|
|
|
|
OOPResults[] oOPResultsArray;
|
|
} |