dji_mqtt_connect 0.1.29 → 0.1.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbbbf8d76b4b59cfa044b9bc78b1f15d29da687eb415ff3ace8b5b5eea8c65fc
|
4
|
+
data.tar.gz: 249408710024a2b88f9b43550c62051b712d18ff2e9c90ce14e2ba049a05a180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7459b05b6ab7bdf2940280bf5b9512e5dc71c371ddca6c738d8e857fcc78d9f017758b298dbb2514e0f9e5d76bc811406660e71fc19d1084936334c7d715e8e
|
7
|
+
data.tar.gz: b590ee8f812a960bd32f4dc66307cc992014236da45647bb2d9189fe751e742ab07f45bbdc26b93eb2054b37fc28eb1e4b47816817eb0a4e4c6b57d65a18b330
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module DjiMqttConnect
|
4
4
|
module Thing::Product
|
5
5
|
class FlightAreasSyncProgressEventsMessage < EventsMessage
|
6
|
+
Reason = Types::Integer.enum(0, 1, 2, 3, 4, 5)
|
7
|
+
|
6
8
|
attribute :_method, Types::String.enum("flight_areas_sync_progress")
|
7
9
|
|
8
10
|
attribute :data do
|
@@ -20,10 +22,18 @@ module DjiMqttConnect
|
|
20
22
|
)
|
21
23
|
|
22
24
|
# {"1":"Failed to parse file information returned from the cloud.","2":"Failed to retrieve file information from the aircraft's end.","3":"Failed to download the file from the cloud.","4":"Link flipping failed.","5":"File transmission failed."}
|
23
|
-
attribute :reason, Types::Integer
|
25
|
+
attribute :reason, Reason | Types::Integer
|
26
|
+
|
27
|
+
def reason?
|
28
|
+
reason && Reason.valid?(reason)
|
29
|
+
end
|
24
30
|
|
25
31
|
def humanized_reason
|
26
|
-
|
32
|
+
if reason?
|
33
|
+
I18n.t(reason, scope: "dji_mqtt_connect.thing_product_flight_areas_sync_progress_events_message.humanized_reason")
|
34
|
+
else
|
35
|
+
reason.to_s
|
36
|
+
end
|
27
37
|
end
|
28
38
|
end
|
29
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dji_mqtt_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.29
|
4
|
+
version: 0.1.29.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sphere Drones
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|