-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDeviceFeatures.php
More file actions
32 lines (29 loc) · 928 Bytes
/
DeviceFeatures.php
File metadata and controls
32 lines (29 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Seam\Objects;
class DeviceFeatures
{
public static function from_json(mixed $json): DeviceFeatures|null
{
if (!$json) {
return null;
}
return new self(
auto_lock_time_config: $json->auto_lock_time_config,
incomplete_keyboard_passcode: $json->incomplete_keyboard_passcode,
lock_command: $json->lock_command,
passcode: $json->passcode,
passcode_management: $json->passcode_management,
unlock_via_gateway: $json->unlock_via_gateway,
wifi: $json->wifi,
);
}
public function __construct(
public bool $auto_lock_time_config,
public bool $incomplete_keyboard_passcode,
public bool $lock_command,
public bool $passcode,
public bool $passcode_management,
public bool $unlock_via_gateway,
public bool $wifi,
) {}
}