Sha256: 79483a9e9f1563d401dc1bb39cab40296c11a21acc8d4f9a7a9f395346966ff4

Contents?: true

Size: 750 Bytes

Versions: 2

Compression:

Stored size: 750 Bytes

Contents

# frozen_string_literal: true

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

      attribute :data do
        include Mixins::ResultMessage

        attribute :result, Types::ResultCode

        attribute :flight_id, Types::FlightID

        attribute :remaining_distance, Types::Integer
        attribute :remaining_time, Types::Integer
        attribute :status, Types::String
        attribute :track_id, Types::String | Types::Nil
        attribute :way_point_index, Types::Integer
      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/events/takeoff_to_point_progress.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/events/takeoff_to_point_progress.rb