Class: DjiMqttConnect::Thing::Product::FlighttaskExecuteServicesMessage

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

Overview

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServicesMessage

#humanized_summary, #humanized_summary_interpolation

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Class Method Details

.build(flight_id:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) ⇒ Object



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

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

Instance Method Details

#flight_idsObject

All the flight IDs in the message



102
103
104
# File 'lib/dji_mqtt_connect/messages/thing/product/services/flighttask_execute.rb', line 102

def flight_ids
  [data.flight_id]
end