alula-ruby 1.9.8 → 1.9.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4246c8b2c1228dbaf9b6bbc0ca56af15a7677fa78db47aca67b7319da3c8741c
4
- data.tar.gz: f07c8ded74f47eb95d9a2c6df8aee775e51796da776ef3c9144135fb816f5062
3
+ metadata.gz: 0c183648594029b78deb52c39a19ce56a6994cf9d0a6fab8412167b84fc36b90
4
+ data.tar.gz: d5265a92310f1124ba478fc9d28d884df620bcd12d2cf2b9479e0da3b83551c7
5
5
  SHA512:
6
- metadata.gz: cce92a2cde0a5bbafb480f495d5a85958f26392a2d91d57f36c0ce0b48fb0924f120d9efa6f1822883d62fc97023a110e626611ba0a520ce31c057335f0f81c8
7
- data.tar.gz: d0f3e0a9a12044bd98863b308299935a3bebc1ce10822921638c5d1f98dbf9b7d43e7c32d1fffe14a4a3fd43831d0b736ea6c17309c39bf49ec3898b9bcec511
6
+ metadata.gz: e6836c01a595c7f22c6e8c5b9ee7ca1cb2695be63875b9246bc2c0933bd79dfcbecbae478bc7fea850881e8bf143ed6c2afe954fcbe09dce8d62cd743a9fa47d
7
+ data.tar.gz: 606dc02ec990d037efeb54e255b43a3e6cc788c4cc3356d096c3f98a701a97d05f63be63e821e83708fc7478feb4a98378819e36060c97adcd2ad73cce6b4eda
data/VERSION.md CHANGED
@@ -1,8 +1,10 @@
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.10 | 2024-08-14 | Overriding RPC response for camera config and server config procs |
6
+ | v1.9.9 | 2024-08-15 | Giving camera server config call a payload field, updated response data for svrConfig + recConfig |
7
+ | v1.9.8 | 2024-08-14 | Allow force for get camera wifi |
6
8
  | v1.9.7 | 2024-08-13 | Update base RPC class to handle response |
7
9
  | v1.9.6 | 2024-08-13 | Add camera-related procs |
8
10
  | v1.9.5 | 2024-07-15 | Video Verification Event resource |
@@ -3,13 +3,20 @@
3
3
  module Alula
4
4
  class CameraGetRecordingConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
+ attr_accessor :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data.dig('data', 'data')
11
+ end
6
12
  end
7
13
 
8
14
  def self.call(serial_number:)
9
15
  request(
10
16
  http_method: :get,
11
- path: "/v1/device/#{serial_number}/recordConfig",
12
- handler: Response
17
+ path: "/video/v1/device/#{serial_number}/recordConfig",
18
+ handler: Response,
19
+ payload: {}
13
20
  )
14
21
  end
15
22
  end
@@ -3,13 +3,20 @@
3
3
  module Alula
4
4
  class CameraGetServerConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
+ attr_accessor :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data.dig('data', 'data')
11
+ end
6
12
  end
7
13
 
8
14
  def self.call(serial_number:)
9
15
  request(
10
16
  http_method: :get,
11
17
  path: "/video/v1/device/#{serial_number}/svrConfig",
12
- handler: Response
18
+ handler: Response,
19
+ payload: {}
13
20
  )
14
21
  end
15
22
  end
@@ -3,18 +3,20 @@
3
3
  module Alula
4
4
  class CameraSetRecordingConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
- end
6
+ attr_accessor :result
7
7
 
8
- def self.call(event:, allday:)
9
- payload = {
10
- "event": event,
11
- "allday": allday
12
- }
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data['data']
11
+ @cmd = response
12
+ end
13
+ end
13
14
 
15
+ def self.call(event:)
14
16
  request(
15
17
  http_method: :post,
16
18
  path: "/v1/device/#{serial_number}/recordConfig",
17
- payload: payload,
19
+ payload: { event:, allday: { mode: 'NULL' } },
18
20
  handler: Response
19
21
  )
20
22
  end
@@ -3,17 +3,19 @@
3
3
  module Alula
4
4
  class CameraSetServerConfigProc < Alula::RpcResource
5
5
  class Response < Alula::RpcResponse
6
+ attr_accessor :result
7
+
8
+ def initialize(response)
9
+ super(response)
10
+ @result = response.data['data']
11
+ end
6
12
  end
7
13
 
8
14
  def self.call(serial_number:, should_use_s3:)
9
- payload = {
10
- "shouldUseS3": should_use_s3
11
- }
12
-
13
15
  request(
14
16
  http_method: :post,
15
17
  path: "/video/v1/device/#{serial_number}/svrConfig",
16
- payload: payload,
18
+ payload: { shouldUseS3: should_use_s3 },
17
19
  handler: Response
18
20
  )
19
21
  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.10'
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.10
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-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty