Class: DjiMqttConnect::Thing::Product::FileUploadCallbackEventsMessage

Inherits:
EventsMessage
  • Object
show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/events/file_upload_callback.rb

Instance Method Summary collapse

Methods inherited from EventsMessage

#humanized_summary, #need_reply?, #to_s

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Instance Method Details

#flight_idsObject

All the flight IDs in the message



62
63
64
# File 'lib/dji_mqtt_connect/messages/thing/product/events/file_upload_callback.rb', line 62

def flight_ids
  [data.file.ext.flight_id]
end

#humanized_summary_interpolationObject



54
55
56
57
58
59
# File 'lib/dji_mqtt_connect/messages/thing/product/events/file_upload_callback.rb', line 54

def humanized_summary_interpolation
  super.merge(
    file_name: data.file.name,
    flight_id: data.file.ext.flight_id
  )
end