Sha256: 8a5a385f1797c57de30a6b938095d420f3972812e93ff67f13d8460385232067
Contents?: true
Size: 673 Bytes
Versions: 6
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product class StateReplyMessage < Message # a result of 0 means we approve of this action def self.build_for(events_message, result: 0) new( tid: events_message.tid, bid: events_message.bid, timestamp: current_timestamp, data: { result: result } ) end attribute :bid, Types::UUID attribute :tid, Types::UUID attribute :timestamp, Types::Timestamp attribute :data do include Mixins::ResultMessage attribute :result, Types::ResultCode end end end end
Version data entries
6 entries across 6 versions & 1 rubygems