diff options
author | ShobhitAd <adlakhshobhit@gmail.com> | 2018-11-01 13:53:08 -0500 |
---|---|---|
committer | ShobhitAd <adlakhshobhit@gmail.com> | 2018-11-01 13:53:08 -0500 |
commit | 7fe745b86e4867dd9a33b582a6900c1f8242edbb (patch) | |
tree | 7a08f5a9fa7d6e0919e2445fae0dfa9e833f6fba /src/components/policy/policy_external/src/policy_table/enums.cc | |
parent | 6d14dbb88bdbaf6c699c4736047ac0e5c385a116 (diff) | |
download | sdl_core-7fe745b86e4867dd9a33b582a6900c1f8242edbb.tar.gz |
Added VehicleData Param CloudAppVehicleID to core
Diffstat (limited to 'src/components/policy/policy_external/src/policy_table/enums.cc')
-rw-r--r-- | src/components/policy/policy_external/src/policy_table/enums.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/src/policy_table/enums.cc b/src/components/policy/policy_external/src/policy_table/enums.cc index 27db505e3f..29227adfc6 100644 --- a/src/components/policy/policy_external/src/policy_table/enums.cc +++ b/src/components/policy/policy_external/src/policy_table/enums.cc @@ -137,6 +137,8 @@ bool IsValidEnum(Parameter val) { return true; case P_FUELRANGE: return true; + case P_CLOUD_APP_VEHICLE_ID: + return true; case P_ODOMETER: return true; case P_TIREPRESSURE: @@ -232,6 +234,8 @@ const char* EnumToJsonString(Parameter val) { return "instantFuelConsumption"; case P_FUELRANGE: return "fuelRange"; + case P_CLOUD_APP_VEHICLE_ID: + return "cloudAppVehicleID"; case P_ODOMETER: return "odometer"; case P_TIREPRESSURE: @@ -336,6 +340,9 @@ bool EnumFromJsonString(const std::string& literal, Parameter* result) { } else if ("fuelRange" == literal) { *result = P_FUELRANGE; return true; + } else if ("cloudAppVehicleID" == literal) { + *result = P_CLOUD_APP_VEHICLE_ID; + return true; } else if ("odometer" == literal) { *result = P_ODOMETER; return true; |