Sha256: 036a5965cacdb56a2c84feb684918a40d9c0884c8b2eb367afaca832b99a4c7d
Contents?: true
Size: 1.17 KB
Versions: 10
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Live Set Lens # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock1/live.html class LiveLensChangeServicesMessage < Message def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) new( bid: bid, tid: tid, data: data, timestamp: timestamp, _method: "live_lens_change" ) end # {"ir":"Infrared","normal":"Default","wide":"Wide-angle","zoom":"Zoom"} VIDEO_TYPE_INFRARED = "ir" VIDEO_TYPE_DEFAULT = "normal" VIDEO_TYPE_WIDE_ANGLE = "wide" VIDEO_TYPE_ZOOM = "zoom" attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String.enum("live_lens_change") attribute :data do attribute :video_id, Types::String attribute :video_type, Types::String.enum( VIDEO_TYPE_INFRARED, VIDEO_TYPE_DEFAULT, VIDEO_TYPE_WIDE_ANGLE, VIDEO_TYPE_ZOOM ) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems