Sha256: ef309495b72cfeee300d67bcccd9edbfda5705df8bc8624b46c5056ed1b9970e
Contents?: true
Size: 1.29 KB
Versions: 18
Compression:
Stored size: 1.29 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Get the wayline task resource # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#get-the-wayline-task-resource class FlighttaskResourceGetRequestsReplyMessage < Message def self.build_for(airport_organization_get_message, file:, result: 0) new( _method: airport_organization_get_message._method, tid: airport_organization_get_message.tid, bid: airport_organization_get_message.bid, timestamp: current_timestamp, data: { result: result, output: { file: file } } ) end attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String.enum("flighttask_resource_get") attribute :data do include Mixins::ResultMessage attribute :result, Types::ResultCode attribute :output do attribute :file do # File MD5 signature attribute :fingerprint, Types::String # File URL attribute :url, Types::String end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems