Sha256: 6725daedd1f4dd3233cbab7ddecce0393f74c9995e671c5c8f4eb089f775e2c3

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class AirportBindStatusRequestsReplyMessage < Message
      def self.build_for(airport_bind_status_message, bind_status:, result: 0)
        new(
          _method: airport_bind_status_message._method,
          tid: airport_bind_status_message.tid,
          bid: airport_bind_status_message.bid,
          timestamp: current_timestamp,
          data: {
            result: result,
            output: {
              bind_status: bind_status
            }
          }
        )
      end

      attribute :tid, Types::UUID
      attribute :bid, Types::UUID
      attribute :timestamp, Types::Timestamp

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

      attribute :data do
        attribute :result, Types::Integer
        attribute :output do
          attribute :bind_status, Types::Array do
            attribute :sn, Types::String
            attribute :is_device_bind_organization, Types::Bool
            attribute :organization_id, Types::String
            attribute :organization_name, Types::String
            attribute :device_callsign, Types::String
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.16.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.16.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.16 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb
dji_mqtt_connect-0.1.12.1 lib/dji_mqtt_connect/messages/thing/product/airport_bind_status_requests_reply_message.rb
dji_mqtt_connect-0.1.12 lib/dji_mqtt_connect/messages/thing/product/airport_bind_status_requests_reply_message.rb