# frozen_string_literal: true module DjiMqttConnect module Thing::Product class CoverCloseEventsMessage < EventsMessage attribute :_method, Types::String.enum("cover_close") attribute :data do attribute :result, Types::Integer attribute :output do # {"sent":"sent","in_progress":"in progress","ok":"success","paused":"paused","rejected":"rejected","failed":"failed","canceled":"canceled or stopped","timeout":"timeout"} attribute :status, Types::String.enum( "sent", "in_progress", "ok", "paused", "rejected", "failed", "canceled", "timeout" ) attribute :progress do # {"min":"0","max":"100","step":"1"} attribute :percent, Types::Integer.constrained(gteq: 0, lteq: 100) attribute? :current_step, Types::Integer attribute? :total_steps, Types::Integer # {"get_bid":"Get bid","check_work_mode":"Check whether to enter remote debugging mode","check_task_state":"Check if the DJI Dock is free","land_mcu_reboot":"Land MCU reboot","rain_mcu_reboot":"Weather station MCU reboot","core_mcu_reboot":"Central control MCU reboot","sdr_reboot":"SDR reboot","write_reboot_param_file":"Write reboot flag","get_drone_power_state":"Get battery charge state","close_putter":"Close the putter","check_wired_connect_state":"Get aircraft state","open_drone":"Open the plane","open_alarm":"Open sound and light alarm","check_scram_state":"Check if the emergency stop switch is pressed","open_cover":"Open the hatch","check_drone_sdr_connect_state":"Establish SDR wireless connection","turn_on_drone":"Turn the plane on","drone_paddle_forward":"Turn on forward paddle","close_cover":"Close the hatch","drone_paddle_reverse":"Turn on reverse paddle","drone_paddle_stop":"Stop Paddle Rotation","free_putter":"Free Putter","stop_charge":"Stop charging"} attribute? :step_key, Types::String.enum( "get_bid", "check_work_mode", "check_task_state", "land_mcu_reboot", "rain_mcu_reboot", "core_mcu_reboot", "sdr_reboot", "write_reboot_param_file", "get_drone_power_state", "close_putter", "check_wired_connect_state", "open_drone", "open_alarm", "check_scram_state", "open_cover", "check_drone_sdr_connect_state", "turn_on_drone", "drone_paddle_forward", "close_cover", "drone_paddle_reverse", "drone_paddle_stop", "free_putter", "stop_charge" ) attribute? :step_result, Types::Integer end end end end end end