Sha256: 553ed2f400d838070453b6eae630e7f636d7c3169f79e860cd9eecfb188d5bdc
Contents?: true
Size: 1.19 KB
Versions: 4
Compression:
Stored size: 1.19 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", "flight_areas_drone_location", "flight_areas_sync_progress", "flighttask_progress", "flighttask_ready", "highest_priority_upload_flighttask_media" ) attribute :data do include Mixins::ResultMessage attribute :result, Types::ResultCode end end end end
Version data entries
4 entries across 4 versions & 1 rubygems