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.16 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb
dji_mqtt_connect-0.1.12.1 lib/dji_mqtt_connect/messages/thing/product/config_requests_reply_message.rb
dji_mqtt_connect-0.1.12 lib/dji_mqtt_connect/messages/thing/product/config_requests_reply_message.rb