Sha256: 50de616841245cdee53e5648c7ea625cb43e48871b85083d34172f710b9d3910

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class AirsenseWarningEventsMessage < EventsMessage
      attribute :_method, Types::String.enum("airsense_warning")
      attribute :_data, Types::Array

      attribute :data, Types::Array do
        attribute :icao, Types::String

        # {"0":"No danger","1":"Level one","2":"Level two","3":"Level three","4":"Level four"}
        attribute :warning_level, Types::Integer.enum(0, 1, 2, 3, 4)

        attribute :latitude, Types::Latitude

        attribute :longitude, Types::Longitude

        attribute :altitude, Types::Integer

        # {"0":"Ellipsoid height","1":"altitude"}
        attribute :altitude_type, Types::Integer.enum(0, 1)

        attribute :distance, Types::Integer

        attribute :heading, Types::JSON::Decimal

        attribute :relative_altitude, Types::Integer

        # {"0":"Relative height unchanged","1":"Relative height increase","2":"Relative height decrease"}
        attribute :vert_trend, Types::Integer.enum(0, 1, 2)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.24.1 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.23.2 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.21 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.20.1 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb
dji_mqtt_connect-0.1.20 lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb