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 = []
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
def __init__(self): self._mms_message = message.MMSMessage()