Example #1
0
 def __init__(self, filename=None):
     """
     :param filename: If specified, decode the content of the MMS
                      message file with this name
     :type filename: str
     """
     self._mms_data = array.array('B')
     self._mms_message = message.MMSMessage()
     self._parts = []
Example #2
0
    def decode_data(self, data):
        """
        Decode the specified MMS message data

        :param data: The MMS message data to decode
        :type data: array.array('B')

        :return: The decoded MMS data
        :rtype: MMSMessage
        """
        self._mms_message = message.MMSMessage()
        self._mms_data = data
        body_iter = self.decode_message_header()
        self.decode_message_body(body_iter)
        return self._mms_message
Example #3
0
 def __init__(self):
     self._mms_message = message.MMSMessage()