AutoApi.Command.properties
You're seeing just the function
properties
, go back to AutoApi.Command module for more information.
Specs
properties(t()) :: [AutoApi.Capability.property()]
Returns the properties set in the command.
For Get and GetAvailability commands, it returns the list of properties in the command, or all the state properties if the list is empty.
For SetCommands, it returns the list of properties with anything set in them
Examples
iex> command = AutoApi.GetAvailabilityCommand.new(AutoApi.HoodCapability, [])
iex> Elixir.AutoApi.Command.properties(command)
[:position, :lock, :lock_safety, :nonce, :vehicle_signature, :timestamp, :vin, :brand]
iex> command = AutoApi.GetCommand.new(AutoApi.HoodCapability, [])
iex> Elixir.AutoApi.Command.properties(command)
[:position, :lock, :lock_safety, :nonce, :vehicle_signature, :timestamp, :vin, :brand]
iex> state = AutoApi.RaceState.base()
...> |> AutoApi.State.put(:vehicle_moving, data: :sport, timestamp: ~U[2021-03-12 10:54:14Z])
...> |> AutoApi.State.put(:brake_torque_vectorings, data: %{axle: :front, state: :active})
iex> command = AutoApi.SetCommand.new(state)
iex> Elixir.AutoApi.Command.properties(command)
[:brake_torque_vectorings, :vehicle_moving]