Sha256: 6084ef967a660bdd6d405d248784b3e8058f5b7d3264975df4bdfff9beebad87
Contents?: true
Size: 715 Bytes
Versions: 28
Compression:
Stored size: 715 Bytes
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product class AlarmStateSwitchServicesMessage < ServicesMessage ACTION_OPEN = 1 ACTION_CLOSE = 0 def self.build(action:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) new( bid: bid, tid: tid, timestamp: timestamp, _method: "alarm_state_switch", data: { action: action } ) end attribute :_method, Types::String.enum("alarm_state_switch") attribute :data do # {"0":"Close","1":"Open"} attribute :action, Types::Integer.enum(ACTION_CLOSE, ACTION_OPEN) end end end end
Version data entries
28 entries across 28 versions & 1 rubygems