Sha256: 559b6f3b510790edee74075be554f72ae016b3548203486df5cfa08c5e3b3ff6
Contents?: true
Size: 1.25 KB
Versions: 10
Compression:
Stored size: 1.25 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 attribute :result, Types::Integer 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
10 entries across 10 versions & 1 rubygems