Sha256: 0461d7139122f5a4ea1fc7316a7880f9e2d9a162c657caf9160461951c1f1d3c
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 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 < RequestsReplyMessage 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 :_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
2 entries across 2 versions & 1 rubygems