Class: DjiMqttConnect::Sys::Product::UpdateTopoStatusReplyMessage

Inherits:
StatusReplyMessage show all
Defined in:
lib/dji_mqtt_connect/messages/sys/product/status_reply/update_topo.rb

Class Method Summary collapse

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Class Method Details

.build_for(update_topo_status_message, result: 0) ⇒ Object

Builds a reply for an update_topo status message a result of 0 means we approve of this action



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/dji_mqtt_connect/messages/sys/product/status_reply/update_topo.rb', line 8

def self.build_for(update_topo_status_message, result: 0)
  new(
    _method: update_topo_status_message._method,
    tid: update_topo_status_message.tid,
    bid: update_topo_status_message.bid,
    timestamp: current_timestamp,
    data: {
      result: result
    }
  )
end