forked from rdkcentral/rdkservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemMode.json
73 lines (72 loc) · 2.32 KB
/
SystemMode.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"$schema": "https://raw.githubusercontent.com/rdkcentral/rdkservices/main/Tools/json_generator/schemas/interface.schema.json",
"jsonrpc": "2.0",
"info": {
"title": "SystemMode API",
"class": "org.rdk.SystemMode",
"description": "The `SystemMode` plugin coordinates state changes that take effect across multiple components in the system."
},
"common": {
"$ref": "../common/common.json"
},
"definitions": {
"systemMode": {
"summary": "System mode (must be one of the following: device_optimize)",
"type": "string",
"example": "device_optimize"
},
"state": {
"summary": "The target state (must be one of the following: video, game)",
"type": "string",
"example": "game"
}
},
"methods": {
"requestState": {
"summary": "Requests a new system mode state in the device. Thunder components asynchronously reconfigure themselves so the caller cannot be guaranteed a full state transition upon return.",
"params": {
"type":"object",
"properties": {
"systemMode": {
"$ref": "#/definitions/systemMode"
},
"state": {
"$ref": "#/definitions/state"
}
},
"required": [
"systemMode",
"state"
]
},
"result": {
"$ref": "#/common/results/void"
}
},
"getState": {
"summary": "Gets the current state for a given system property",
"params": {
"type":"object",
"properties": {
"systemMode": {
"$ref": "#/definitions/systemMode"
}
},
"required": [
"systemMode"
]
},
"result": {
"type": "object",
"properties": {
"state": {
"$ref": "#/definitions/state"
}
},
"required": [
"state"
]
}
}
}
}