Class: DjiMqttConnect::Thing::Product::SdrWorkmodeSwitchServicesMessage

Inherits:
ServicesMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/services/sdr_workmode_switch.rb

Overview

Constant Summary collapse

0
1

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(link_workmode:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/dji_mqtt_connect/messages/thing/product/services/sdr_workmode_switch.rb', line 11

def self.build(link_workmode:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
  new(
    bid: bid,
    tid: tid,
    timestamp: timestamp,
    _method: "sdr_workmode_switch",
    data: {
      link_workmode: link_workmode
    }
  )
end

Instance Method Details

#humanized_summary_interpolationObject



34
35
36
37
38
# File 'lib/dji_mqtt_connect/messages/thing/product/services/sdr_workmode_switch.rb', line 34

def humanized_summary_interpolation
  super.merge(
    link_workmode: data.humanized_link_workmode
  )
end