Skip to content

Commit

Permalink
Merge pull request #262 from LuxoftSDL/feature/fuel_info_related_vehi…
Browse files Browse the repository at this point in the history
…cle_data

Feature/Refactor Fuel Information Related Vehicle Data
  • Loading branch information
ShobhitAd authored Aug 5, 2020
2 parents 7efe3c6 + 3fd52c2 commit 49247bf
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 58 deletions.
155 changes: 118 additions & 37 deletions MOBILE_API.xml
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@
</element>
<element name="VEHICLEDATA_SPEED" />
<element name="VEHICLEDATA_RPM" />
<element name="VEHICLEDATA_FUELLEVEL" />
<element name="VEHICLEDATA_FUELLEVEL_STATE" />
<element name="VEHICLEDATA_FUELLEVEL" until="7.0"/>
<element name="VEHICLEDATA_FUELLEVEL_STATE" until="7.0"/>
<element name="VEHICLEDATA_FUELCONSUMPTION" />
<element name="VEHICLEDATA_EXTERNTEMP" />
<element name="VEHICLEDATA_VIN" />
Expand Down Expand Up @@ -579,6 +579,12 @@
<element name="BOTH" />
</enum>

<enum name="CapacityUnit" since="7.0">
<element name="LITERS" />
<element name="KILOWATTHOURS" />
<element name="KILOGRAMS" />
</enum>

<struct name="CloudAppProperties" since="5.1">
<param name="nicknames" type="String" minlength="0" maxlength="100" array="true" minsize="0" maxsize="100" mandatory="false">
<description>An array of app names a cloud app is allowed to register with. If included in a SetCloudAppProperties request, this value will overwrite the existing "nicknames" field in the app policies section of the policy table.</description>
Expand Down Expand Up @@ -1300,6 +1306,18 @@
The estimate range in KM the vehicle can travel based on fuel level and consumption.
</description>
</param>
<param name="level" type="Float" minvalue="-6" maxvalue="1000000" mandatory="false" since="7.0">
<description>The relative remaining capacity of this fuel type (percentage).</description>
</param>
<param name="levelState" type="ComponentVolumeStatus" mandatory="false" since="7.0">
<description>The fuel level state</description>
</param>
<param name="capacity" type="Float" minvalue="0" maxvalue="1000000" mandatory="false" since="7.0">
<description>The absolute capacity of this fuel type.</description>
</param>
<param name="capacityUnit" type="CapacityUnit" mandatory="false" since="7.0">
<description>The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries.</description>
</param>
</struct>

<enum name="ElectronicParkBrakeStatus" since="5.0">
Expand Down Expand Up @@ -5839,17 +5857,26 @@
<param name="rpm" type="Boolean" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="Boolean" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="Boolean" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="Boolean" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="Boolean" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="Boolean" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand Down Expand Up @@ -5955,17 +5982,26 @@
<param name="rpm" type="VehicleDataResult" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="VehicleDataResult" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="VehicleDataResult" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="VehicleDataResult" mandatory="false">
<description>The external temperature in degrees celsius.</description>
Expand Down Expand Up @@ -6050,17 +6086,26 @@
<param name="rpm" type="Boolean" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="Boolean" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="Boolean" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="Boolean" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="Boolean" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="Boolean" mandatory="false">
<description>The external temperature in degrees celsius.</description>
Expand Down Expand Up @@ -6165,17 +6210,26 @@
<param name="rpm" type="VehicleDataResult" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="VehicleDataResult" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="VehicleDataResult" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="VehicleDataResult" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="VehicleDataResult" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand Down Expand Up @@ -6260,17 +6314,26 @@
<param name="rpm" type="Boolean" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="Boolean" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="Boolean" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="Boolean" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="Boolean" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="Boolean" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="Boolean" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand Down Expand Up @@ -6379,17 +6442,26 @@
<param name="rpm" type="Integer" minvalue="0" maxvalue="20000" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="Float" minvalue="0" maxvalue="25575" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="FuelRange" minsize="0" maxsize="100" array="true" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand Down Expand Up @@ -8076,17 +8148,26 @@
<param name="rpm" type="Integer" minvalue="0" maxvalue="20000" mandatory="false">
<description>The number of revolutions per minute of the engine</description>
</param>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false">
<description>The fuel level in the tank (percentage)</description>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false">
<description>The fuel level state</description>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" deprecated="true" since="7.0">
<description>The fuel level state. This parameter is deprecated starting RPC Spec 7.0, please see fuelRange.</description>
<history>
<param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" since="2.0" until="7.0"/>
</history>
</param>
<param name="instantFuelConsumption" type="Float" minvalue="0" maxvalue="25575" mandatory="false">
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="FuelRange" minsize="0" maxsize="100" array="true" mandatory="false" since="5.0">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>
The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle.
See struct FuelRange for details.
</description>
</param>
<param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand Down
Loading

0 comments on commit 49247bf

Please sign in to comment.