AndroidAPS/app/src/main/java/info/nightscout/androidaps/db/Source.java

25 lines
646 B
Java
Raw Normal View History

2017-05-21 22:05:03 +02:00
package info.nightscout.androidaps.db;
/**
* Created by mike on 21.05.2017.
*/
public class Source {
public final static int NONE = 0;
2017-06-07 00:11:33 +02:00
public final static int PUMP = 1; // Pump history
public final static int NIGHTSCOUT = 2; // created in NS
public final static int USER = 3; // created by user or driver not using history
public static String getString(int source) {
switch (source) {
case PUMP:
return "PUMP";
case NIGHTSCOUT:
return "NIGHTSCOUT";
case USER:
return "USER";
}
return "NONE";
}
2017-05-21 22:05:03 +02:00
}