Class: DjiMqttConnect::Thing::Product::AirConditionerModeSwitchServicesMessage
- Inherits:
-
ServicesMessage
- Object
- Dry::Struct
- Message
- ServicesMessage
- DjiMqttConnect::Thing::Product::AirConditionerModeSwitchServicesMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/services/air_conditioner_mode_switch.rb
Overview
Dock Air Conditioner Working Mode Switch https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock3/cmd.html#dock-air-conditioner-working-mode-switch
Constant Summary collapse
- ACTION_IDLE =
0- ACTION_COOLING =
1- ACTION_HEATING =
2- ACTION_DEHUMIDIFICATION =
3
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ServicesMessage
#flight_ids, #humanized_summary
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Class Method Details
.build(action:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/air_conditioner_mode_switch.rb', line 13 def self.build(action:, bid: generate_bid, tid: generate_tid, timestamp: ) new( bid: bid, tid: tid, timestamp: , _method: "air_conditioner_mode_switch", data: { action: action } ) end |
Instance Method Details
#humanized_summary_interpolation ⇒ Object
36 37 38 39 40 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/air_conditioner_mode_switch.rb', line 36 def humanized_summary_interpolation super.merge( action: data.humanized_action ) end |