Sha256: ac2fbc0c5e039578a35ced7d61b3c758f9d0094a3dc2d1d345b9139da73b1b0b

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # Get the wayline task resource
    # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#get-the-wayline-task-resource
    class FlighttaskResourceGetRequestsMessage < RequestsMessage
      attribute :_method, Types::String.enum("flighttask_resource_get")

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

      # All the flight IDs in the message
      def flight_ids
        [data.flight_id]
      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/requests/flighttask_resource_get.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/requests/flighttask_resource_get.rb