alula-ruby 1.9.8 → 1.9.9

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: 4246c8b2c1228dbaf9b6bbc0ca56af15a7677fa78db47aca67b7319da3c8741c
4
- data.tar.gz: f07c8ded74f47eb95d9a2c6df8aee775e51796da776ef3c9144135fb816f5062
3
+ metadata.gz: 862f2ea01185662b9fe69c4a124cae5319bf239e20093c310aff126099837bec
4
+ data.tar.gz: c93506e0d79bec648766cf8f9ef984e0faf51e7cf7c675b712d9e8ebe3911449
5
5
  SHA512:
6
- metadata.gz: cce92a2cde0a5bbafb480f495d5a85958f26392a2d91d57f36c0ce0b48fb0924f120d9efa6f1822883d62fc97023a110e626611ba0a520ce31c057335f0f81c8
7
- data.tar.gz: d0f3e0a9a12044bd98863b308299935a3bebc1ce10822921638c5d1f98dbf9b7d43e7c32d1fffe14a4a3fd43831d0b736ea6c17309c39bf49ec3898b9bcec511
6
+ metadata.gz: 694b237a5d7430b5115d765339953f973a86d0fd54437590cc7aafb70b9dbd122f2c28082d259769c01849fc2cfc19a3f59a1262e7f4c2514add4d5fe74febdf
7
+ data.tar.gz: 9f51666dda26193152508e567f57305ab5315470e6d0e0a5256bb5b50c2243bdf48e27b1bbc46dc00cf817efdeaf4c6bd11b514edec9b2f3ec27763c3f5eff7d
data/VERSION.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Versioning Log
2
2
 
3
- | Version | Date | Description |
4
- | ------- | --------- | --------------------------------------------------------------------------- |
5
- | v1.9.8 | 2024-08-13 | Allow force for get camera wifi |
3
+ | Version | Date | Description |
4
+ | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v1.9.9 | 2024-08-15 | Giving camera server config call a payload field, updated response data for svrConfig + recConfig |
6
+ | v1.9.8 | 2024-08-14 | Allow force for get camera wifi |
6
7
  | v1.9.7 | 2024-08-13 | Update base RPC class to handle response |
7
8
  | v1.9.6 | 2024-08-13 | Add camera-related procs |
8
9
  | v1.9.5 | 2024-07-15 | Video Verification Event resource |
@@ -3,13 +3,24 @@
3
3
  module Alula
4
4
  class CameraGetRecordingConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
+ attr_accessor :cmd, :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data.dig('data', 'data')
11
+ end
12
+
13
+ def ok?
14
+ super && @cmd == 'getRecordConfig'
15
+ end
6
16
  end
7
17
 
8
18
  def self.call(serial_number:)
9
19
  request(
10
20
  http_method: :get,
11
- path: "/v1/device/#{serial_number}/recordConfig",
12
- handler: Response
21
+ path: "/video/v1/device/#{serial_number}/recordConfig",
22
+ handler: Response,
23
+ payload: {}
13
24
  )
14
25
  end
15
26
  end
@@ -3,13 +3,24 @@
3
3
  module Alula
4
4
  class CameraGetServerConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
+ attr_accessor :cmd, :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data.dig('data', 'data')
11
+ end
12
+
13
+ def ok?
14
+ super && @cmd == 'getSvrConfig'
15
+ end
6
16
  end
7
17
 
8
18
  def self.call(serial_number:)
9
19
  request(
10
20
  http_method: :get,
11
21
  path: "/video/v1/device/#{serial_number}/svrConfig",
12
- handler: Response
22
+ handler: Response,
23
+ payload: {}
13
24
  )
14
25
  end
15
26
  end
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '1.9.8'
4
+ VERSION = '1.9.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.8
4
+ version: 1.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-14 00:00:00.000000000 Z
11
+ date: 2024-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty