Sha256: 0b343274187c5bf6552a83935f1be03499034797aaaf967d028731f80e49b57e
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 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", "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
8 entries across 8 versions & 1 rubygems