OcppModel.V20.EnumTypes (ocpp_model v0.3.0) View Source

Contains a map of all EnumTypes that are used in the currently supported messages, with a function to validate if a value is part of the EnumType

Link to this section Summary

Functions

Returns the entire EnumTypes Map

Returns the list of values for the specified EnumType

Validates whether or not the value is part of the EnumType

Link to this section Functions

Specs

get() :: map()

Returns the entire EnumTypes Map

Specs

get(atom()) :: [String.t()] | nil

Returns the list of values for the specified EnumType

Link to this function

validate?(enum_type, value)

View Source

Specs

validate?(atom(), String.t()) :: boolean()

Validates whether or not the value is part of the EnumType