Class: DjiMqttConnect::Thing::Product::ConfigRequestsReplyMessage

Inherits:
RequestsReplyMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb

Overview

Class Method Summary collapse

Methods inherited from RequestsReplyMessage

#humanized_summary, #humanized_summary_interpolation

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Class Method Details

.build_for(config_request_message, data:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb', line 7

def self.build_for(config_request_message, data:)
  new(
    _method: config_request_message._method,
    data: data,
    tid: config_request_message.tid,
    bid: config_request_message.bid,
    timestamp: current_timestamp,
    gateway: config_request_message.gateway
  )
end