Sha256: e5b73ba3f233ba07bb6c36d3700143757c66d6a16b7c4a03e6d9628dc3f90a77
Contents?: true
Size: 1.24 KB
Versions: 18
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/organization.html#device-bind-to-organization class AirportOrganizationBindRequestsReplyMessage < Message def self.build_for(airport_organization_bind_message, err_infos: [], result: 0) new( _method: airport_organization_bind_message._method, tid: airport_organization_bind_message.tid, bid: airport_organization_bind_message.bid, timestamp: current_timestamp, data: { result: result, err_infos: err_infos } ) end attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String.enum("airport_organization_bind") attribute :data do include Mixins::ResultMessage attribute :result, Types::ResultCode attribute :err_infos, Types::Array do attribute :sn, Types::String # Custom field. Non-zero indicates that the bind was unsuccessful. attribute :err_code, Types::Integer end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems