-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasa.operation.audiovolume.json
More file actions
57 lines (57 loc) · 1.57 KB
/
asa.operation.audiovolume.json
File metadata and controls
57 lines (57 loc) · 1.57 KB
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
{
"id": "http://openinterconnect.org/asamapping/schemas/asa.operation.audiovolume.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2017 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Audio Volume",
"definitions": {
"asa.operation.audiovolume": {
"type": "object",
"properties": {
"volume": {
"type": "integer",
"description": "Speaker volume index",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.audio",
"x-to-ocf": [
"ocf.volume = volume"
],
"x-from-ocf": [
"volume = ocf.volume"
]
}
},
"maxvolume": {
"type": "integer",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.audio",
"x-to-ocf": [
"range[0] = 0",
"range[1] = maxvolume"
],
"x-from-ocf": [
"maxvolume = range[1]",
"otherwise: maxvalue = 100"
]
}
},
"mute": {
"type": "boolean",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.audio",
"x-to-ocf": [
"ocf.mute = mute"
],
"x-from-ocf": [
"mute = ocf.mute"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/asa.operation.audiovolume"}
],
"required": [ "volume","maxvolume","mute" ]
}