Class: DjiMqttConnect::Thing::Product::FlighttaskStopServicesMessage
- Inherits:
-
ServicesMessage
- Object
- Dry::Struct
- Message
- ServicesMessage
- DjiMqttConnect::Thing::Product::FlighttaskStopServicesMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/services/flighttask_stop.rb
Overview
When a dock reports the task termination, this method should be issued to the other dock during the multi-dock task. developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock2/wayline.html#task-termination
Class Method Summary collapse
Instance Method Summary collapse
-
#flight_ids ⇒ Object
All the flight IDs in the message.
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(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/flighttask_stop.rb', line 8 def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: ) new( bid: bid, tid: tid, timestamp: , _method: "flighttask_stop", data: data ) end |
Instance Method Details
#flight_ids ⇒ Object
All the flight IDs in the message
32 33 34 |
# File 'lib/dji_mqtt_connect/messages/thing/product/services/flighttask_stop.rb', line 32 def flight_ids [data.flight_id] end |