mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-18 05:36:39 -04:00
Use description as note
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user