Sha256: c1d6ddd80f21401e54b0ad4cd3c814d1f254f7032cd38f745f25bd468689b24d

Contents?: true

Size: 615 Bytes

Versions: 18

Compression:

Stored size: 615 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
        include Mixins::ResultMessage

        attribute :result, Types::ResultCode
      end

      def to_s
        # Include data method for Generic messages
        instance_of?(ServicesReplyMessage) ? "#{super}[#{_method}]" : super
      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/services_reply_message.rb
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.23.2 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.21 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.20.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.20 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.19.2 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.19.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.19 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.18 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.17.1 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb
dji_mqtt_connect-0.1.17 lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb