Sha256: 9473d9b48979df9a88942cca581c73f06e33e4291bcdd54b5baaecca41f7e16e
Contents?: true
Size: 925 Bytes
Versions: 2
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Live Set Quality # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock1/live.html class LiveSetQualityServicesMessage < ServicesMessage def self.build(data:, bid: generate_bid, tid: generate_tid, timestamp: current_timestamp) new( bid: bid, tid: tid, data: data, timestamp: timestamp, _method: "live_set_quality" ) end attribute :_method, Types::String.enum("live_set_quality") attribute :data do include Mixins::VideoQuality attribute :video_id, Types::String attribute :video_quality, Types::VideoQuality end def humanized_summary_interpolation super.merge( video_quality: data.humanized_video_quality ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems