Sha256: 78cd7086e2f8f62395e369e67acc6dbd62645f3843ab06342d4d789a7cf84981

Contents?: true

Size: 904 Bytes

Versions: 30

Compression:

Stored size: 904 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class ConfigRequestsReplyMessage < Message
      def self.build_for(config_request_message, data:)
        new(
          _method: config_request_message._method,
          data: data,
          tid: config_request_message.tid,
          bid: config_request_message.bid,
          timestamp: current_timestamp,
          gateway: config_request_message.gateway
        )
      end

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

      attribute :_method, Types::String.enum("config")
      attribute :data do
        attribute :ntp_server_host, Types::String
        attribute :app_id, Types::String
        attribute :app_key, Types::String
        attribute :app_license, Types::String
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

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