Sha256: 0f8039c6e4fa923e1bdac793d69900377f112671910943f924c7aa4177ea77d7

Contents?: true

Size: 823 Bytes

Versions: 2

Compression:

Stored size: 823 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # Dock requests for the task execution state of the other dock during the multi-dock task.
    # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock2/wayline.html#obtain-dock-task-execution-state
    class FlighttaskProgressGetServicesMessage < ServicesMessage
      def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
        new(
          bid: bid,
          tid: tid,
          timestamp: timestamp,
          _method: "flighttask_progress_get",
          data: data
        )
      end

      attribute :_method, Types::String.enum("flighttask_progress_get")

      attribute :data do
        attribute :sn, Types::SerialNumber
      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/services/flighttask_progress_get.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/services/flighttask_progress_get.rb