Sha256: 354a4da256e11823cf39ca1fb5fcf3cb7f7b934c4a07084004622fc77c56dfb9

Contents?: true

Size: 573 Bytes

Versions: 10

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class ServicesReplyMessage < DjiMqttConnect::Message
      attribute :tid, Types::UUID
      attribute :bid, Types::UUID
      attribute :timestamp, Types::Timestamp

      attribute :_data, Types::Hash
      attribute :_method, Types::String

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

      def to_s
        # Include data method for Generic messages
        instance_of?(ServicesReplyMessage) ? "#{super}[#{_method}]" : super
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.16.2 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.16.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.16 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb