# 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