# frozen_string_literal: true module DjiMqttConnect module Thing::Product class CoverCloseEventsMessage < EventsMessage attribute :_method, Types::String.enum("cover_close") attribute :data do include Mixins::ResultMessage attribute :result, Types::ResultCode attribute :output do include Mixins::ServicesOutputStatusChecks # {"sent":"sent","in_progress":"in progress","ok":"success","paused":"paused","rejected":"rejected","failed":"failed","canceled":"canceled or stopped","timeout":"timeout"} attribute :status, Types::ServicesOutputStatus attribute :progress do include Mixins::EventsProgressChecks # {"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::EventsProgressStepKey attribute? :step_result, Types::Integer end end end end end end