Use description as note

This commit is contained in:
Sylvia van Os
2019-12-09 17:25:48 +01:00
parent 8637f8d2a1
commit 3d543dd23c

View File

@@ -44,15 +44,15 @@ public class PkpassImporter {
JSONObject json = new JSONObject(readData);
String store = json.getString("description");
// TODO: Note
String store = json.getString("organizationName");
String note = json.getString("description");
String cardId = json.getJSONObject("barcode").getString("message");
String barcodeType = json.getJSONObject("barcode").getString("format").substring("PKBarcodeFormat".length());
if(barcodeType.equals("QR"))
{
barcodeType = "QR_CODE";
}
return new LoyaltyCard(-1, store, "", cardId, barcodeType, null, null);
return new LoyaltyCard(-1, store, note, cardId, barcodeType, null, null);
}
return null;