Initial project commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user