Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 22c317a

Browse files
author
Eduardo Fullea
committed
more editorial fixes
1 parent 7ba37fa commit 22c317a

File tree

1 file changed

+61
-57
lines changed

1 file changed

+61
-57
lines changed

index.html

Lines changed: 61 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ <h2><a>MessagingManager</a> Interface</h2>
275275
</dl>
276276
</dd>
277277

278-
<dt> Promise markConversationRead ()</dt> <dd>This method
279-
requests to mark as read or unread all the messages in the conversation with
280-
identifier equal to the <code>conversationID</code> parameter. The method returns a new
281-
<code>Promise</code> that will allow the caller to be notified
282-
about the result (success, error) of the operation.
278+
<dt> Promise markConversationRead ()</dt> <dd>This method requests to mark
279+
as read or unread all the messages in the conversation with identifier equal
280+
to the <code>conversationID</code> parameter. The method returns a new
281+
<code>Promise</code> that will allow the caller to be notified about the
282+
result (success, error) of the operation.
283283
<dl class='parameters'>
284284
<dt>DOMString conversationID</dt> <dd>
285285
Identifier of the conversation whose messages are requested to be
@@ -396,15 +396,15 @@ <h3>Steps</h3>
396396
<var>resolver</var> its associated <code>resolver</code>
397397
<li>Return <var>promise</var> to the caller.
398398
<li>Make a request to the system to delete the messages in the conversation
399-
with identifier equal to the <code>conversationID</code> parameter passed in the
400-
request.
399+
with identifier equal to the <code>conversationID</code> parameter passed
400+
in the request.
401401
<li>If an <var>error</var> occurs invoke <em>resolver</em>'s <a
402402
class="internalDFN" href="#dfn-reject-algorithm">reject algorithm</a> with
403403
<em>error</em> as the <code>value</code> argument.
404404
<li>When the request has been successfully completed:
405405
<ol>
406-
<li>Let <var>conversationID</var> be the <code>conversationID</code> parameter
407-
passed in the request
406+
<li>Let <var>conversationID</var> be the <code>conversationID</code>
407+
parameter passed in the request
408408
<li>Invoke <em>resolver</em>'s <a class="internalDFN"
409409
href="#dfn-fulfill-algorithm">fulfill algorithm</a> with
410410
<em>conversationID</em> as the <code>value</code> argument.
@@ -419,8 +419,8 @@ <h3>Steps</h3>
419419
<li>Return <var>promise</var> to the caller.
420420
<li>Make a request to the system to mark as read/unread (depending on the
421421
<code>value</code> parameter being respectively 'true' or 'false') the
422-
message with identifier equal to the <code>messageID</code> parameter passed in
423-
the request.
422+
message with identifier equal to the <code>messageID</code> parameter
423+
passed in the request.
424424
<li>If an <var>error</var> occurs invoke <em>resolver</em>'s <a
425425
class="internalDFN" href="#dfn-reject-algorithm">reject algorithm</a> with
426426
<em>error</em> as the <code>value</code> argument.
@@ -442,15 +442,15 @@ <h3>Steps</h3>
442442
<li>Return <var>promise</var> to the caller.
443443
<li>Make a request to the system to mark as read/unread (depending on the
444444
<code>value</code> parameter being respectively 'true' or 'false') the
445-
messages in the conversation with identifier equal to the <code>conversationID</code>
446-
parameter passed in the request.
445+
messages in the conversation with identifier equal to the
446+
<code>conversationID</code> parameter passed in the request.
447447
<li>If an <var>error</var> occurs invoke <em>resolver</em>'s <a
448448
class="internalDFN" href="#dfn-reject-algorithm">reject algorithm</a> with
449449
<em>error</em> as the <code>value</code> argument.
450450
<li>When the request has been successfully completed:
451451
<ol>
452-
<li>Let <var>conversationID</var> be the <code>conversationID</code> parameter
453-
passed in the request
452+
<li>Let <var>conversationID</var> be the <code>conversationID</code>
453+
parameter passed in the request
454454
<li>Invoke <em>resolver</em>'s <a class="internalDFN"
455455
href="#dfn-fulfill-algorithm">fulfill algorithm</a> with
456456
<em>conversationID</em> as the <code>value</code> argument.
@@ -601,17 +601,15 @@ <h3>Steps</h3>
601601
the <code>serviceID</code> parameter, if provided, or otherwise to the
602602
first item in the <code>serviceIDs</code> attribute of the
603603
<code>SmsManager</code>.
604-
<li>Set the <code>from</code> of <em>smsMessage</em> to the
605-
number of the mobile subscription used to send this SMS message.
604+
<li>Set the <code>from</code> of <em>smsMessage</em> to the number of the
605+
mobile subscription used to send this SMS message.
606606
<li>Set the <code>read</code> of <em>smsMessage</em> to 'true'.
607-
<li>Set the <code>to</code> of <em>smsMessage</em> to
608-
the value of the <code>to</code> parameter.
609-
<li>Set the <code>body</code> of <em>smsMessage</em> to the value
610-
of the <code>text</code> parameter.
611-
<li>Set the <code>messageClass</code> of <em>smsMessage</em> to
612-
'class1'.
613-
<li>Set the <code>state</code> of <em>smsMessage</em> to
614-
'sending'.
607+
<li>Set the <code>to</code> of <em>smsMessage</em> to the value of the
608+
<code>to</code> parameter.
609+
<li>Set the <code>body</code> of <em>smsMessage</em> to the value of the
610+
<code>text</code> parameter.
611+
<li>Set the <code>messageClass</code> of <em>smsMessage</em> to 'class1'.
612+
<li>Set the <code>state</code> of <em>smsMessage</em> to 'sending'.
615613
<li>Set the <code>deliveryStatus</code> of <em>smsMessage</em> to
616614
'pending' if a delivery report has been requested or to 'not-applicable'
617615
otherwise.
@@ -690,12 +688,12 @@ <h3>Steps</h3>
690688
TP-Service-Centre-Time-Stamp (TP-SCTS) parameter received in the SMS
691689
DELIVER Protocol Data Unit [[!GSM-SMS]].
692690
<li>Set the <code>read</code> of <em>smsMessage</em> to 'false'.
693-
<li>Set the <code>to</code> of <em>smsMessage</em> to the
694-
recipient of the SMS message, i.e. the value of the TP Destination
695-
Address (TP-DA) field of the SMS message [[!GSM-SMS]].
696-
<li>Set the <code>messageClass</code> of <em>smsMessage</em> to
697-
the message class indicated in the TP-Data-Coding-Scheme (TP-DCS) field of
691+
<li>Set the <code>to</code> of <em>smsMessage</em> to the recipient of the
692+
SMS message, i.e. the value of the TP Destination Address (TP-DA) field of
698693
the SMS message [[!GSM-SMS]].
694+
<li>Set the <code>messageClass</code> of <em>smsMessage</em> to the
695+
message class indicated in the TP-Data-Coding-Scheme (TP-DCS) field of the
696+
SMS message [[!GSM-SMS]].
699697
<li>Set the <code>body</code> element to the text of the received SMS
700698
message, i.e. the value of the SM element contained within the TP User
701699
Data (TP-UD) field of the SMS message [[!GSM-SMS]].
@@ -933,9 +931,10 @@ <h2><a>MmsManager</a> Interface</h2>
933931

934932
<dt> Promise fetch ()</dt>
935933
<dd>This method requests to fetch an MMS message with identifier equal to
936-
the indicated in the <code>messageID</code> parameter from the URL indicated in the
937-
MMS notification. The method returns a new <code>Promise</code> that will
938-
allow the caller to be notified about the result (success, error) of the
934+
the indicated in the <code>messageID</code> parameter from the URL indicated
935+
in the MMS notification. The method returns a new <code>Promise</code> that
936+
will allow the caller to be notified about the result (success, error) of
937+
the
939938
operation.
940939
<dl class='parameters'>
941940
<dt>DOMString messageID</dt>
@@ -1013,7 +1012,8 @@ <h3>Steps</h3>
10131012
<li>Let <var>promise</var> be a new <code>Promise</code> object and
10141013
<var>resolver</var> its associated <code>resolver</code>
10151014
<li>Return <var>promise</var> to the caller.
1016-
<li>Let <var>mmsMessage</var> be a new instance of <code>MmsMessage</code> and:
1015+
<li>Let <var>mmsMessage</var> be a new instance of <code>MmsMessage</code>
1016+
and:
10171017
<ol>
10181018
<li>Generate a identifier for this message that is globally unique within
10191019
the implementation, i.e. there cannot be any other message with the same
@@ -1026,24 +1026,23 @@ <h3>Steps</h3>
10261026
the <code>serviceID</code> parameter, if provided, or otherwise to the
10271027
first item in the <code>serviceIDs</code> attribute of the
10281028
<code>MmsManager</code>.
1029-
<li>Set the <code>from</code> of <em>mmsMessage</em> to the
1030-
number of the mobile subscription used to send this MMS message.
1029+
<li>Set the <code>from</code> of <em>mmsMessage</em> to the number of the
1030+
mobile subscription used to send this MMS message.
10311031
<li>Set the <code>read</code> of <em>mmsMessage</em> to 'true'.
1032-
<li>Set the <code>to</code> of <em>mmsMessage</em> to the
1033-
<code>to</code> in the <code>mmsContent</code> parameter.
1034-
<li>Set the <code>cc</code> of <em>mmsMessage</em> to the
1035-
<code>cc</code> array in the <code>mmsContent</code> parameter.
1032+
<li>Set the <code>to</code> of <em>mmsMessage</em> to the <code>to</code>
1033+
in the <code>mmsContent</code> parameter.
1034+
<li>Set the <code>cc</code> of <em>mmsMessage</em> to the <code>cc</code>
1035+
array in the <code>mmsContent</code> parameter.
10361036
<li>Set the <code>bcc</code> of <em>mmsMessage</em> to the
10371037
<code>bcc</code> array in the <code>mmsContent</code> parameter.
1038-
<li>Set the <code>subject</code> of <em>mmsMessage</em> to the
1039-
value of the the <code>subject</code> parameter in <code>mmsContent</code>.
1040-
<li>Set the <code>smil</code> of <em>mmsMessage</em> to the value
1041-
of the the <code>smil</code> parameter in <code>mmsContent</code>.
1042-
<li>Set the <code>attachments</code> of <em>mmsMessage</em> to the
1043-
value of the the <code>attachments</code> array in <code>mmsContent</code>
1038+
<li>Set the <code>subject</code> of <em>mmsMessage</em> to the value of
1039+
the the <code>subject</code> parameter in <code>mmsContent</code>.
1040+
<li>Set the <code>smil</code> of <em>mmsMessage</em> to the value of the
1041+
the <code>smil</code> parameter in <code>mmsContent</code>.
1042+
<li>Set the <code>attachments</code> of <em>mmsMessage</em> to the value
1043+
of the the <code>attachments</code> array in <code>mmsContent</code>
10441044
parameter.
1045-
<li>Set the <code>state</code> of <em>mmsMessage</em> to
1046-
'sending'.
1045+
<li>Set the <code>state</code> of <em>mmsMessage</em> to 'sending'.
10471046
<li>Add a new item in the <code>deliveryInfo</code> attribute of
10481047
<em>mmsMessage</em> for each unique recipient included in the
10491048
<code>to</code>, <code>cc</code> and <code>bcc</code> parameters (i.e. a
@@ -1063,7 +1062,8 @@ <h3>Steps</h3>
10631062
<ol>
10641063
<li>If a delivery report had been requested set the
10651064
<code>deliveryStatus</code> attribute of the different items in the
1066-
<code>deliveryInfo</code> array attribute of <em>mmsMessage</em> to 'error'.
1065+
<code>deliveryInfo</code> array attribute of <em>mmsMessage</em> to
1066+
'error'.
10671067
<li>invoke <em>resolver</em>'s <a class="internalDFN"
10681068
href="#dfn-reject-algorithm">reject algorithm</a> with <em>error</em> as
10691069
the <code>value</code> argument.
@@ -1117,13 +1117,16 @@ <h3>Steps</h3>
11171117
notification, i.e. the value of the TP-Service-Centre-Time-Stamp
11181118
(TP-SCTS) parameter received in the SMS-DELIVER Protocol Data Unit
11191119
[[!GSM-SMS]].
1120-
<li>Set the <code>expiry</code> of <em>mmsMessage</em> to the
1121-
value of the 'X-Mms-Expiry' field of the MMS notification.
1122-
<li>Add a new item in the <code>to</code> array of <em>mmsMessage</em> for each of recipients in the 'To' field of the
1123-
MMS notification [[!MMS13]], if present.
1124-
<li>Add a new item in the <code>cc</code> array of <em>mmsMessage</em> for each of recipients in the 'Cc' field of the
1125-
MMS notification [[!MMS13]], if present.
1126-
<li>Add a new item in the <code>bcc</code> array of <em>mmsMessage</em> for each of recipients in the 'Bcc' field of the
1120+
<li>Set the <code>expiry</code> of <em>mmsMessage</em> to the value of
1121+
the 'X-Mms-Expiry' field of the MMS notification.
1122+
<li>Add a new item in the <code>to</code> array of <em>mmsMessage</em>
1123+
for each of recipients in the 'To' field of the MMS notification
1124+
[[!MMS13]], if present.
1125+
<li>Add a new item in the <code>cc</code> array of <em>mmsMessage</em>
1126+
for each of recipients in the 'Cc' field of the MMS notification
1127+
[[!MMS13]], if present.
1128+
<li>Add a new item in the <code>bcc</code> array of
1129+
<em>mmsMessage</em> for each of recipients in the 'Bcc' field of the
11271130
MMS notification [[!MMS13]], if present.
11281131
<li>Set the <code>subject</code> attribute to the value of the 'Subject'
11291132
field of the MMS notification [[!MMS13]], if present.
@@ -1158,7 +1161,8 @@ <h3>Steps</h3>
11581161
<li>Set the <code>subject</code> attribute to the value of the 'Subject'
11591162
field of the MMS message [[!MMS13]], if present.
11601163
<li>Set the <code>smil</code> attribute to a <code>DOMString</code>
1161-
containing the SMIL object of the received MMS message [[!MMS13]], if present.
1164+
containing the SMIL object of the received MMS message [[!MMS13]],
1165+
if present.
11621166
<li>For each of the media files attached to the received MMS message add a
11631167
new item to the <code>attachments</code> array with:
11641168
<ol>

0 commit comments

Comments
 (0)