You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If invoking this method is not allowed for the current scripting context for security reasons, reject |promise| with a {{SecurityError}} and abort these steps.
1148
1148
</li>
1149
1149
<li>
1150
-
If |option|'s {{formIndex}} is defined, let |form| be the
1151
-
<a>Form</a> associated with {{formIndex}} in ||td||'s |forms| array, otherwise let |form| be the first <a>Form</a> in ||td||'s |forms| array whose |op| is `readmultipleproperties`.
1150
+
If |option|'s |formIndex| is defined, let |form| be the
1151
+
<a>Form</a> associated with |formIndex| in ||td||'s |forms| array, otherwise let |form| be the first <a>Form</a> in ||td||'s |forms| array whose |op| is `readmultipleproperties`.
1152
1152
</li>
1153
1153
<li>
1154
1154
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
Let |result:object| be an object and for each string |name:string| in |propertyNames| add a property with key |name| and the value `null`.
1158
1158
</li>
1159
1159
<li>
1160
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to retrieve the <a>Property</a> values given by |propertyNames| with |form| and optional URI templates given in |options|' {{uriVariables}}.
1160
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to retrieve the <a>Property</a> values given by |propertyNames| with |form| and optional URI templates given in |options|' |uriVariables|.
1161
1161
</li>
1162
1162
<li>
1163
1163
If this cannot be done with a single request with the <a>Protocol Bindings</a>, reject |promise| with a {{NotSupportedError}} and abort these steps.
If invoking this method is not allowed for the current scripting context for security reasons, reject |promise| with a {{SecurityError}} and abort these steps.
1206
1206
</li>
1207
1207
<li>
1208
-
If |option|'s {{formIndex}} is defined, let |form| be the
1209
-
<a>Form</a> associated with {{formIndex}} in ||td||'s |forms| array, otherwise let |form| be the first <a>Form</a> in ||td||'s |forms| array whose |op| is `readallproperties`.
1208
+
If |option|'s |formIndex| is defined, let |form| be the
1209
+
<a>Form</a> associated with |formIndex| in ||td||'s |forms| array, otherwise let |form| be the first <a>Form</a> in ||td||'s |forms| array whose |op| is `readallproperties`.
1210
1210
</li>
1211
1211
<li>
1212
1212
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
1213
1213
</li>
1214
1214
<li>
1215
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to retrieve the value of the all the <a>Property</a> definitions from the <a>TD</a> with |form| and optional URI templates given in |options|' {{uriVariables}}.
1215
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to retrieve the value of the all the <a>Property</a> definitions from the <a>TD</a> with |form| and optional URI templates given in |options|' |uriVariables|.
1216
1216
</li>
1217
1217
<li>
1218
1218
If this cannot be done with a single request with the <a>Protocol Bindings</a> of the <a>Thing</a>, then reject |promise| with a {{NotSupportedError}} and abort these steps.
If |option|'s {{formIndex}} is defined, let |form| be the
1407
-
<a>Form</a> associated with {{formIndex}} in |interaction|'s |forms|
1406
+
If |option|'s |formIndex| is defined, let |form| be the
1407
+
<a>Form</a> associated with |formIndex| in |interaction|'s |forms|
1408
1408
array, otherwise let |form| be the first <a>Form</a> in
1409
1409
|interaction|'s |forms| array whose |op| is `observeproperty`.
1410
1410
</li>
1411
1411
<li>
1412
1412
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
1413
1413
</li>
1414
1414
<li>
1415
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to observe <a>Property</a> identified by |propertyName| with |form| and optional URI templates given in |options|' {{uriVariables}}.
1415
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to observe <a>Property</a> identified by |propertyName| with |form| and optional URI templates given in |options|' |uriVariables|.
1416
1416
</li>
1417
1417
<li>
1418
1418
If the request fails, reject |promise| with the error received from the <a>Protocol Bindings</a> and abort these steps.
If |option|'s {{formIndex}} is defined, let |form| be the
1459
-
<a>Form</a> associated with {{formIndex}} in |interaction|'s |forms|
1458
+
If |option|'s |formIndex| is defined, let |form| be the
1459
+
<a>Form</a> associated with |formIndex| in |interaction|'s |forms|
1460
1460
array, otherwise let |form| be the first <a>Form</a> in
1461
1461
|interaction|'s |forms| array whose |op| is `unobserveproperty`.
1462
1462
</li>
1463
1463
<li>
1464
1464
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
1465
1465
</li>
1466
1466
<li>
1467
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to stop observing the <a>Property</a> identified by |propertyName|, with |form| and optional URI templates given in |options|' {{uriVariables}}.
1467
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to stop observing the <a>Property</a> identified by |propertyName|, with |form| and optional URI templates given in |options|' |uriVariables|.
1468
1468
</li>
1469
1469
<li>
1470
1470
If the request fails, reject |promise| with the error received from the <a>Protocol Bindings</a> and abort these steps.
Let |args| be the result of running the <a>create interaction data</a>steps on |params|, |form| and |interaction|. If that throws, reject <a>promise</a> with that exception and abort these steps.
1510
1510
</li>
1511
1511
<li>
1512
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to invoke the <a>Action</a> identified by |actionName| with parameters provided in |args| and optional URI templates given in |options|'s {{uriVariables}}.
1512
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to invoke the <a>Action</a> identified by |actionName| with parameters provided in |args| and optional URI templates given in |options|'s |uriVariables|.
1513
1513
</li>
1514
1514
<li>
1515
1515
If the request fails locally or returns an error over the network, reject |promise| with the error received from the <a>Protocol Bindings</a> and abort these steps.
Let |interaction| be the value of ||td||'s |events|'s |eventName|.
1552
1552
</li>
1553
1553
<li>
1554
-
If |option|'s {{formIndex}} is defined, let |form| be the
1555
-
<a>Form</a> associated with {{formIndex}} in |interaction|'s |forms|
1554
+
If |option|'s |formIndex| is defined, let |form| be the
1555
+
<a>Form</a> associated with |formIndex| in |interaction|'s |forms|
1556
1556
array, otherwise let |form| be the first <a>Form</a> in
1557
1557
|interaction|'s |forms| array whose |op| is `subscribeevent`.
1558
1558
</li>
1559
1559
<li>
1560
1560
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
1561
1561
</li>
1562
1562
<li>
1563
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to subscribe to an <a>Event</a> identified by |eventName:string| with |form| and optional URI templates given in |options|' {{uriVariables}}
1564
-
and optional subscription data given in |options|'s {{data}}.
1563
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to subscribe to an <a>Event</a> identified by |eventName:string| with |form| and optional URI templates given in |options|' |uriVariables|
1564
+
and optional subscription data given in |options|'s |data|.
1565
1565
</li>
1566
1566
<li>
1567
1567
If the request fails, reject |promise| with the error received from the <a>Protocol Bindings</a> and abort these steps.
Let |interaction| be the value of ||td||'s |events|'s |eventName|.
1597
1597
</li>
1598
1598
<li>
1599
-
If |option|'s {{formIndex}} is defined, let |form| be the
1600
-
<a>Form</a> associated with {{formIndex}} in |interaction|'s |forms|
1599
+
If |option|'s |formIndex| is defined, let |form| be the
1600
+
<a>Form</a> associated with |formIndex| in |interaction|'s |forms|
1601
1601
array, otherwise let |form| be the first <a>Form</a> in
1602
1602
|interaction|'s |forms| array whose |op| is `unsubscribeevent`.
1603
1603
</li>
1604
1604
<li>
1605
1605
If |form| is failure, reject |promise| with a {{SyntaxError}} and abort these steps.
1606
1606
</li>
1607
1607
<li>
1608
-
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to unsubscribe from the <a>Event</a> identified by |eventName| with |form| and optional URI templates given in |options|' {{uriVariables}}
1609
-
and optional unsubscribe data given in |options|'s {{data}}.
1608
+
Make a request to the underlying platform (via the <a>Protocol Bindings</a>) to unsubscribe from the <a>Event</a> identified by |eventName| with |form| and optional URI templates given in |options|' |uriVariables|
1609
+
and optional unsubscribe data given in |options|'s |data|.
1610
1610
</li>
1611
1611
<li>
1612
1612
If the request fails, reject |promise| with the error received from the <a>Protocol Bindings</a> and abort these steps.
0 commit comments