Sha256: 86b3c7e0dbdd7ea79ff6c046330181e6ba743a0055c143de6112bc01d4169c42
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/topic-definition.html#events-reply-struct-example class EventsReplyMessage < Message # a result of 0 means we approve of this action def self.build_for(events_message, result: 0) new( _method: events_message._method, 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 :_method, Types::String.enum( "device_exit_homing_notify", "device_reboot", "file_upload_callback", "fileupload_progress", "flighttask_progress", "flighttask_ready", "highest_priority_upload_flighttask_media" ) attribute :data do attribute :result, Types::Integer end end end end
Version data entries
2 entries across 2 versions & 1 rubygems