Class: DjiMqttConnect::Thing::Product::CameraPhotoTakeProgressEventsMessage

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

Overview

Persistent progress updates for camera_photo_take (e.g. panorama or other persistent photo capturing). https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock3/drc.html#upload-capture-progress

Instance Method Summary collapse

Methods inherited from EventsMessage

#flight_ids, #humanized_summary, #need_reply?, #to_s

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Instance Method Details

#humanized_summary_interpolationObject



36
37
38
39
40
41
# File 'lib/dji_mqtt_connect/messages/thing/product/events/camera_photo_take_progress.rb', line 36

def humanized_summary_interpolation
  super.merge(
    status: data.output.humanized_status,
    percent: data.output.progress.percent
  )
end