Add code to support 'platform' and 'clientFormFactor' query options

This commit is contained in:
Samantaz Fox 2022-03-23 23:54:27 +01:00
parent ecfa789948
commit a0fb0e3c07
1 changed files with 10 additions and 0 deletions

View File

@ -111,6 +111,8 @@ client_extra_device_make=""
client_extra_device_model=""
client_extra_os_name=""
client_extra_os_vers=""
client_extra_platform=""
client_extra_form_factor=""
data=""
@ -427,6 +429,14 @@ if [ $interactive = true ]; then
if ! [ -z "$client_extra_os_vers" ]; then
client="${client},\"osVersion\":\"${client_extra_os_vers}\""
fi
if ! [ -z "$client_extra_platform" ]; then
client="${client},\"platform\":\"${client_extra_platform}\""
fi
if ! [ -z "$client_extra_form_factor" ]; then
client="${client},\"clientFormFactor\":\"${client_extra_form_factor}\""
fi
fi