Sha256: d7dfe895f038904b28ce2e9fac9d871ae591cb6f906a79810c8dbbf453d5f700

Contents?: true

Size: 508 Bytes

Versions: 4

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class HighestPriorityUploadFlighttaskMediaEventsMessage < EventsMessage
      attribute :_method, Types::String.enum("highest_priority_upload_flighttask_media")

      # NOTE: Not documented, but appears in examples
      attribute? :need_reply, Types::Integer.enum(0, 1)

      attribute :data do
        attribute :flight_id, Types::String
      end

      def need_reply?
        need_reply == 1
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.12.1 lib/dji_mqtt_connect/messages/thing/product/highest_priority_upload_flighttask_media_events_message.rb
dji_mqtt_connect-0.1.12 lib/dji_mqtt_connect/messages/thing/product/highest_priority_upload_flighttask_media_events_message.rb
dji_mqtt_connect-0.1.11 lib/dji_mqtt_connect/messages/thing/product/highest_priority_upload_flighttask_media_events_message.rb
dji_mqtt_connect-0.1.10 lib/dji_mqtt_connect/messages/thing/product/highest_priority_upload_flighttask_media_events_message.rb