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

Commit 4310f89

Browse files
author
Eduardo Fullea
committed
adding delivery time for messages #70
1 parent 67af5c1 commit 4310f89

File tree

1 file changed

+74
-24
lines changed

1 file changed

+74
-24
lines changed

index.html

Lines changed: 74 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ <h3>Steps</h3>
700700
<li>Set the <code>deliveryStatus</code> parameter of the
701701
<code>SmsMessage</code> to 'success' or 'error' depending on the reported
702702
result.
703+
<li>Set the <code>deliveryTimestamp</code> of the <code>SmsMessage</code>
704+
to the delivery time of the SMS message, i.e. the TP-Discharge-Time (TP
705+
DT) parameter included in the SMS-STATUS-REPORT Protocol Data Unit
706+
[[!GSM-SMS]].
703707
<li><a>Queue a task</a> to <a>fire an event</a> named
704708
<a>deliverysuccess</a> or <a>deliveryfailure</a> respectively if the
705709
delivery was successfull or not, with
@@ -708,8 +712,10 @@ <h3>Steps</h3>
708712
<code>SmsMessage</code> to which this confirmation is related,
709713
<li>the <code>serviceID</code> attribute set to the identifier of the
710714
service used to send such message, and
711-
<li>the <code>recipients</code> attribute set to the recipient of such
712-
message.
715+
<li>the first item in the <code>recipients</code> attribute set to the
716+
recipient of such message.
717+
<li>the first item in the <code>deliveryTimestamps</code> attribute set
718+
to delivery time of such message.
713719
</ol>
714720
<li><a>Queue a task</a> to fire a system message of type
715721
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
@@ -720,8 +726,10 @@ <h3>Steps</h3>
720726
<code>SmsMessage</code> to which this confirmation is related,
721727
<li>the <code>serviceID</code> attribute set to the identifier of the
722728
service used to send such message, and
723-
<li>the <code>recipients</code> attribute set to the recipient of such
724-
message.
729+
<li>the first item in the <code>recipients</code> attribute set to the
730+
recipient of such message.
731+
<li>the first item in the <code>deliveryTimestamps</code> attribute set
732+
to delivery time of such message.
725733
</ol>
726734
</ol>
727735

@@ -1015,7 +1023,7 @@ <h3>Steps</h3>
10151023
parameter.
10161024
<li>Set the <code>state</code> of the <code>MmsMessage</code> to
10171025
'sending'.
1018-
<li>Add a new item in the <code>deliveryStatusArray</code> of the
1026+
<li>Add a new item in the <code>deliveryInfo</code> attribute of the
10191027
<code>MmsMessage</code> for each unique recipient included in the
10201028
<code>to</code>, <code>cc</code> and <code>bcc</code> parameters (i.e. a
10211029
single item if the same address has multiple ocurrences across these
@@ -1037,7 +1045,7 @@ <h3>Steps</h3>
10371045
<ol>
10381046
<li>If a delivery report had been requested set the
10391047
<code>deliveryStatus</code> attribute of the different items in the
1040-
<code>deliveryStatusArray</code> attribute of the
1048+
<code>deliveryInfo</code> array attribute of the
10411049
<code>MmsMessage</code> to 'error'.
10421050
<li>call <var>resolver</var>'s <code>reject(value)</code>method with
10431051
<var>error</var> as <code>value</code> argument.
@@ -1145,8 +1153,8 @@ <h3>Steps</h3>
11451153
</ol>
11461154
<li>Set the <code>state</code> of the <code>MmsMessage</code> to
11471155
'received'.
1148-
<li>Add a new item in the <code>deliveryStatusArray</code> of the
1149-
<code>MmsMessage</code> for each unique recipient included in the
1156+
<li>Add a new item in the <code>deliveryInfo</code> array attribute of
1157+
the <code>MmsMessage</code> for each unique recipient included in the
11501158
'To', 'Cc' and 'Bcc' fields (i.e. a single item if the same address
11511159
has multiple ocurrences across these parameters), with the
11521160
<code>recipient</code> attribute set to this recipient's address and
@@ -1217,15 +1225,23 @@ <h3>Steps</h3>
12171225
<p>Upon a delivery report of a previously sent MMS message being received, the
12181226
<a>user agent</a> MUST
12191227
<ol>
1220-
<li>For each of the items in the <code>deliveryStatusArray</code>
1228+
<li>For each of the items in the <code>deliveryInfo</code> array
12211229
attribute of the <code>MmsMessage</code> whose <code>recipient</code>
12221230
attribute matches one of the recipients of the MMS to which the delivery
1223-
report is related, set its <code>deliveryStatus</code> attribute
1231+
report is related,
12241232
<ol>
1225-
<li>to 'success', if the value of the X-Mms-Status element [[!MMS13]]
1226-
in the delivery report is 'Retrieved', or
1227-
<li>to 'error', if the value of the X-Mms-Status element [[!MMS13]] in
1228-
the delivery report is 'Expired', 'Rejected' or 'Unreachable'
1233+
<li>set its <code>deliveryStatus</code> attribute:
1234+
<ol>
1235+
<li>to 'success', in case of successful delivery, i.e. if the
1236+
value of the X-Mms-Status element in the M-Delivery.ind Protocol
1237+
Data Unit [[!MMS13]] is 'Retrieved', or
1238+
<li>to 'error', in case of failed delivery, i.e. if the value of
1239+
the X-Mms-Status element in the the M-Delivery.ind Protocol Data
1240+
Unit [[!MMS13]] is 'Expired', 'Rejected' or 'Unreachable'.
1241+
</ol>
1242+
<li>set its <code>deliveryTimestamp</code> attribute to the delivery
1243+
time, i.e. the 'Date' field in the M-Delivery.ind Protocol Data Unit
1244+
[[!MMS13]], in case of successful delivery.
12291245
</ol>
12301246
<li><a>Queue a task</a> to <a>fire an event</a> named
12311247
<a>deliverysuccess</a> or <a>deliveryfailure</a> respectively if the
@@ -1236,7 +1252,11 @@ <h3>Steps</h3>
12361252
<li>the <code>serviceID</code> attribute set to the identifier of the
12371253
service used to send such message, and
12381254
<li>the <code>recipients</code> attribute set to the subset of the
1239-
original recipients to which this delivery report is related.
1255+
original recipients to which this delivery report is related, and
1256+
<li>in case of successful delivery, with each of the items in the
1257+
<code>deliveryTimestamps</code> attribute set to the delivery time of
1258+
the MMS message to the corresponding recipient, i.e. that in the
1259+
same position of the <code>recipients</code> array.
12401260
</ol>
12411261
<li><a>Queue a task</a> to fire a system message of type
12421262
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
@@ -1246,9 +1266,13 @@ <h3>Steps</h3>
12461266
<li>the <code>messageID</code> attribute set to the identifier of the
12471267
<code>MmsMessage</code> to which this confirmation is related,
12481268
<li>the <code>serviceID</code> attribute set to the identifier of the
1249-
service used to send such message, and
1269+
service used to send such message, and
12501270
<li>the <code>recipients</code> attribute set to the recipient of such
1251-
message.
1271+
message, and
1272+
<li>in case of successful delivery, with each of the items in the
1273+
<code>deliveryTimestamps</code> attribute set to the delivery time of
1274+
the MMS message to the corresponding recipient, i.e. that in the
1275+
same position of the <code>recipients</code> array.
12521276
</ol>
12531277
</ol>
12541278

@@ -1384,7 +1408,13 @@ <h2><a>SmsMessage</a> Interface</h2>
13841408
<dd>MUST return the delivery status of the SMS message.
13851409
</dd>
13861410

1387-
<dt>readonly attribute MessageClass messageClass</dt>
1411+
<dt>readonly attribute Date? deliveryTimestamp</dt>
1412+
<dd>MUST return for sent messages the delivery date as reported in the
1413+
TP-Discharge-Time (TP DT) parameter included in the SMS-STATUS-REPORT
1414+
Protocol Data Unit or null if there is no positive knowledge about the
1415+
delivery of the message. MUST return null for received messages.</dd>
1416+
1417+
<dt>readonly attribute MessageClass messageClass</dt>
13881418
<dd>MUST return the SMS message class, according to the value indicated in
13891419
the TP-Data-Coding-Scheme (TP-DCS) field of the SMS.</dd>
13901420

@@ -1456,9 +1486,10 @@ <h2><a>MmsMessage</a> Interface</h2>
14561486
<dt>readonly attribute MmsState state</dt>
14571487
<dd>MUST return the status of the MMS message.</dd>
14581488

1459-
<dt>readonly attribute MmsDeliveryStatus[] deliveryStatusArray</dt>
1489+
<dt>readonly attribute MmsDeliveryInfo[] deliveryInfo</dt>
14601490
<dd>MUST return an array with each of the items indicating the delivery
1461-
status to each of the recipients of the message.</dd>
1491+
status and, if applicable, the delivery time to each of the recipients of the
1492+
message.</dd>
14621493

14631494
</dl>
14641495
</section>
@@ -1527,18 +1558,23 @@ <h2><a>MmsAttachment</a> Dictionary</h2>
15271558
</dl>
15281559
</section>
15291560

1530-
<!------------------------ Dictionary MmsDeliveryStatus -------------------->
1561+
<!------------------------ Dictionary MmsDeliveryInfo -------------------->
15311562
<section>
1532-
<h2><a>MmsDeliveryStatus</a> Dictionary</h2>
1533-
<dl title="dictionary MmsDeliveryStatus" class="idl">
1563+
<h2><a>MmsDeliveryInfo</a> Dictionary</h2>
1564+
<dl title="dictionary MmsDeliveryInfo" class="idl">
15341565
<dt>DeliveryStatus deliveryStatus</dt>
15351566
<dd>
1536-
The delivery status of the MMS message
1567+
The delivery status of the MMS message to a specific recipient.
15371568
</dd>
15381569
<dt>DOMString recipient</dt>
15391570
<dd>
15401571
The recipient of the MMS to which the delivery status is related.
15411572
</dd>
1573+
<dt>Date deliveryTimestamp</dt>
1574+
<dd>The time the message was delivered to the recipient, i.e. the 'Date'
1575+
field in the M-Delivery.ind Protocol Data Unit [[!MMS13]]. It is not
1576+
provided if there is no positive knowledge about the delivery of the
1577+
message.</dd>
15421578
</dl>
15431579
</section>
15441580

@@ -1684,6 +1720,13 @@ <h2><a>DeliveryReport</a> Interface</h2>
16841720
related to an SMS message then the array will contain a single item
16851721
corresponding to the single recipient of the SMS message.
16861722
</dd>
1723+
<dt>readonly attribute Date[]? deliveryTimestamps</dt>
1724+
<dd>MUST return an array containing the delivery dates for each of the
1725+
recipients to which this delivery report event relates. Each element in the
1726+
array refers to the recipient in the same position of the
1727+
<code>recipients</code> array. It MUST return null if case of delivery
1728+
failure (e.g. message expired)
1729+
</dd>
16871730
</dl>
16881731
</section>
16891732

@@ -1724,6 +1767,13 @@ <h2><a>DeliveryReportEvent</a> Interface</h2>
17241767
related to an SMS message then the array will contain a single item
17251768
corresponding to the single recipient of the SMS message.
17261769
</dd>
1770+
<dt>readonly attribute Date[]? deliveryTimestamps</dt>
1771+
<dd>MUST return an array containing the delivery dates for each of the
1772+
recipients to which this delivery report event relates. Each element in the
1773+
array refers to the recipient in the same position of the
1774+
<code>recipients</code> array. It MUST return null if case of delivery
1775+
failure (e.g. message expired)
1776+
</dd>
17271777
</dl>
17281778
</section>
17291779

0 commit comments

Comments
 (0)