Sha256: e5b73ba3f233ba07bb6c36d3700143757c66d6a16b7c4a03e6d9628dc3f90a77

Contents?: true

Size: 1.24 KB

Versions: 18

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/organization.html#device-bind-to-organization
    class AirportOrganizationBindRequestsReplyMessage < Message
      def self.build_for(airport_organization_bind_message, err_infos: [], result: 0)
        new(
          _method: airport_organization_bind_message._method,
          tid: airport_organization_bind_message.tid,
          bid: airport_organization_bind_message.bid,
          timestamp: current_timestamp,
          data: {
            result: result,
            err_infos: err_infos
          }
        )
      end

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

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

      attribute :data do
        include Mixins::ResultMessage

        attribute :result, Types::ResultCode

        attribute :err_infos, Types::Array do
          attribute :sn, Types::String

          # Custom field. Non-zero indicates that the bind was unsuccessful.
          attribute :err_code, Types::Integer
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.24.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.23.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.21 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.20.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.20 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.19.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.19.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.19 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.18 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.17.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb
dji_mqtt_connect-0.1.17 lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb