We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f644df commit 045afd2Copy full SHA for 045afd2
messaging/mms/mms_pdu.py
@@ -39,7 +39,7 @@ def flatten_list(x):
39
0x04: ('Content-Type', 'content_type_value'),
40
0x05: ('Date', 'date_value'),
41
0x06: ('Delivery-Report', 'boolean_value'),
42
- 0x07: ('Delivery-Time', None),
+ 0x07: ('Delivery-Time', 'delivery_time_value'),
43
0x08: ('Expiry', 'expiry_value'),
44
0x09: ('From', 'from_value'),
45
0x0a: ('Message-Class', 'message_class_value'),
@@ -353,6 +353,17 @@ def decode_boolean_value(byte_iter):
353
byte = byte_iter.next()
354
return byte == 128
355
356
+ @staticmethod
357
+ def decode_delivery_time_value(byte_iter):
358
+ value_length = wsp_pdu.Decoder.decode_value_length(byte_iter)
359
+ token = byte_iter.next()
360
+ value = wsp_pdu.Decoder.decode_long_integer(byte_iter)
361
+ if token == 128:
362
+ token_type = 'absolute'
363
+ elif token == 129:
364
+ token_type = 'relative'
365
+ return (token_type, value)
366
+
367
@staticmethod
368
def decode_from_value(byte_iter):
369
"""
0 commit comments