# frozen_string_literal: true module DjiMqttConnect module Sys::Product # {"tid":"3093aad5-bb98-5026-685a-cea540eb9267","bid":"479533e0-cb01-933c-3758-22f2a82abeb8","timestamp":1679380232398,"method":"update_topo","data":{"domain":2,"type":144,"sub_type":0,"device_secret":"0d180c84ddbe76ee32ad2e48eab3c994","nonce":"83ad8038363b4d5387cbf106d1517718","version":1,"sub_devices":[]}} class StatusMessage < DjiMqttConnect::Message attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_data, Types::Hash attribute :_method, Types::String def to_s # Include data method for Generic messages instance_of?(StatusMessage) ? "#{super}[#{_method}]" : super end end end end