Sha256: 5377eab0cfbfa00f852e48038ccec5d4a67221fd9ada14db242d7955f9febf74
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true module DjiMqttConnect module Sys::Product class UpdateTopoStatusReplyMessage < Message # Builds a reply for an update_topo status message # a result of 0 means we approve of this action def self.build_for(update_topo_status_message, result: 0) new( _method: update_topo_status_message._method, tid: update_topo_status_message.tid, bid: update_topo_status_message.bid, timestamp: Time.now.strftime("%s%L").to_i, data: { result: result } ) end attribute :_method, Types::String attribute :tid, Types::String attribute :bid, Types::String attribute :timestamp, Types::Integer attribute :data do attribute :result, Types::Integer end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dji_mqtt_connect-0.1.0 | lib/dji_mqtt_connect/messages/sys/product/update_topo_status_reply_message.rb |