Sha256: 4df426de77ed85b5a227844b4d353f7ad0206d408c198696b46162b3d69c5940

Contents?: true

Size: 489 Bytes

Versions: 28

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class CoverOpenServicesMessage < ServicesMessage
      def self.build(bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
        new(
          bid: bid,
          tid: tid,
          timestamp: timestamp,
          _method: "cover_open"
        )
      end

      attribute :_method, Types::String.enum("cover_open")

      attribute :data, Types::Hash.default({}.freeze)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.16 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb