# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Cancel wayline task # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#cancel-wayline-task class FlighttaskUndoServicesMessage < ServicesMessage def self.build(flight_ids:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) new( bid: bid, tid: tid, timestamp: timestamp, _method: "flighttask_undo", data: { flight_ids: flight_ids } ) end attribute :_method, Types::String.enum("flighttask_undo") attribute :data do attribute :flight_ids, Types::Array.of(Types::String) end end end end