Sha256: 77aa1ed7ceb8ffd3cb48dd16a270f4737a7538fd006eb7aedaf05abf8d01b08f

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class AirportBindStatusRequestsMessage < RequestsMessage
      attribute :_method, Types::String.enum("airport_bind_status")

      attribute :data do
        attribute :devices, Types::Array do
          attribute :sn, Types::SerialNumber
        end
      end

      def humanized_summary
        Translations.thing_product_requests_summary(
          _method,
          devices: data.devices.map(&:sn).join(", ")
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.25.1 lib/dji_mqtt_connect/messages/thing/product/requests/airport_bind_status.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/thing/product/requests/airport_bind_status.rb