Sha256: ec0f2b09a7c5a9f1906f2eec80f3dbf0e14ddcfa95c978a5bdee275d9fc6ea97
Contents?: true
Size: 1.21 KB
Versions: 5
Compression:
Stored size: 1.21 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: Time.now.strftime("%s%L").to_i, 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 attribute :result, Types::Integer 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
5 entries across 5 versions & 1 rubygems