Sha256: d6987d296b3715602acb21a72c81f0f5e7b2f63d6372829153ff12c6f06e80c4

Contents?: true

Size: 766 Bytes

Versions: 2

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class ReturnHomeServicesReplyMessage < ServicesReplyMessage
      attribute :_method, Types::String.enum("return_home")

      attribute :data do
        attribute :result, Types::Integer

        attribute :output do
          # {"sent":"sent","in_progress":"in progress","ok":"succeeded","paused":"paused","rejected":"rejected","failed":"failed","canceled":"canceled or terminated","timeout":"timeout"}
          attribute :status, Types::String.enum(
            "sent",
            "in_progress",
            "ok",
            "paused",
            "rejected",
            "failed",
            "canceled",
            "timeout"
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/services_reply/return_home.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/services_reply/return_home.rb