6: Extend parser to read the ID too
This commit is contained in:
@@ -43,6 +43,8 @@ public final class AlarmConfigurationParser {
|
||||
static PriceAlarmDefinition parseLine(String line) {
|
||||
Cursor cursor = new Cursor(line);
|
||||
|
||||
int id = Integer.parseInt(cursor.nextToken("id"));
|
||||
|
||||
JupiterPerpsAsset asset = JupiterPerpsAsset.valueOf(
|
||||
cursor.nextToken("asset").toUpperCase(Locale.ROOT)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user