Class: DjiMqttConnect::Thing::Product::AirportOrganizationBindRequestsReplyMessage

Inherits:
RequestsReplyMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.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(airport_organization_bind_message, err_infos: [], result: 0) ⇒ Object



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

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