diff --git a/xmlprofile/idea.txt b/xmlprofile/idea.txt new file mode 100644 index 00000000..2827e2b0 --- /dev/null +++ b/xmlprofile/idea.txt @@ -0,0 +1,30 @@ +# Note + +XMLProfile v1 + +``` +adb shell + +mkdir /sdcard/coffeevending/xmlprofile + +adb push ./xmlprofile/sample_design1.json /sdcard/coffeevending/xmlprofile/main.json +``` + +- JSON structure + +** modifiers ** not used yet! + +``` +{ + "ProfileName":{ + "enable": "true | false", + "except": [ + "BoxID that this profile cannot apply to" + ], + "modifiers": [ + "apply_to=( all_menus | restricted_menus | ... )", // Work In Progress, this will apply the profile to the following options only. + "# This is comment" + ] + } +} +``` \ No newline at end of file diff --git a/xmlprofile/sample_design1.json b/xmlprofile/sample_design1.json new file mode 100644 index 00000000..8b9a33f8 --- /dev/null +++ b/xmlprofile/sample_design1.json @@ -0,0 +1,40 @@ +{ + "SugarBreak":{ + "enable": true, + "except": [ + + ], + "modifiers": [ + "apply_to=all_menus" + ] + }, + "Discount50":{ + "enable": true, + "except": [ + 200000, + 200001 + ], + "modifiers": [ + "apply_to=all_menus" + ] + }, + "y18IDCard":{ + "enable": false, + "except": [ + + ], + "modifiers": [ + "apply_to=restricted_menus" + ] + }, + "y18IDCardLive":{ + "enable": false, + "except": [ + + ], + "modifiers": [ + "apply_to=restricted_menus", + "enable_feature=liveness # This is comment" + ] + } +}