Sha256: 5bd6b5a895e187031de923a21bbb41f0afba0c101af4cf636dc6f6471719b0c2

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # Notification of task readiness
    # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#notification-of-task-readiness
    class FlighttaskReadyEventsMessage < EventsMessage
      attribute :_method, Types::String.enum("flighttask_ready")

      attribute :data do
        attribute :flight_ids, Types::Array.of(Types::FlightID)
      end

      # All the flight IDs in the message
      def flight_ids
        data.flight_ids
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.25.1 lib/dji_mqtt_connect/messages/thing/product/events/flighttask_ready.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/events/flighttask_ready.rb