Class: DjiMqttConnect::Thing::Product::LiveLensChangeServicesMessage

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

Overview

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServicesMessage

#flight_ids, #humanized_summary

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/live_lens_change.rb', line 8

def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
  new(
    bid: bid,
    tid: tid,
    data: data,
    timestamp: timestamp,
    _method: "live_lens_change"
  )
end

Instance Method Details

#humanized_summary_interpolationObject



28
29
30
31
32
# File 'lib/dji_mqtt_connect/messages/thing/product/services/live_lens_change.rb', line 28

def humanized_summary_interpolation
  super.merge(
    video_type: data.humanized_video_type
  )
end