Class: DjiMqttConnect::Thing::Product::FlighttaskResourceGetRequestsReplyMessage

Inherits:
RequestsReplyMessage show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/requests_reply/flighttask_resource_get.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_get_message, file:, result: 0) ⇒ Object



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

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