def ParseMessageRow(self, parser_mediator, query, row, **unused_kwargs):
    """Parses a message row.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      query (str): query that created the row.
      row (sqlite3.Row): row.
    """
    query_hash = hash(query)

    event_data = IMessageEventData()
    event_data.attachment_location = self._GetRowValue(
        query_hash, row, 'attachment_location')
    event_data.imessage_id = self._GetRowValue(query_hash, row, 'imessage_id')
    event_data.message_type = self._GetRowValue(query_hash, row, 'message_type')
    event_data.offset = self._GetRowValue(query_hash, row, 'ROWID')
    event_data.query = query
    event_data.read_receipt = self._GetRowValue(query_hash, row, 'read_receipt')
    event_data.service = self._GetRowValue(query_hash, row, 'service')
    event_data.text = self._GetRowValue(query_hash, row, 'text')

    timestamp = self._GetRowValue(query_hash, row, 'date')
    date_time = dfdatetime_cocoa_time.CocoaTime(timestamp=timestamp)
    event = time_events.DateTimeValuesEvent(
        date_time, definitions.TIME_DESCRIPTION_CREATION)
    parser_mediator.ProduceEventWithEventData(event, event_data)
def ParseMessageRow ( self , parser_mediator , query , row , ** unused_kwargs ) : query_hash = hash ( query ) event_data = IMessageEventData ( ) event_data . attachment_location = self . _GetRowValue ( query_hash , row , 'attachment_location' ) event_data . imessage_id = self . _GetRowValue ( query_hash , row , 'imessage_id' ) event_data . message_type = self . _GetRowValue ( query_hash , row , 'message_type' ) event_data . offset = self . _GetRowValue ( query_hash , row , 'ROWID' ) event_data . query = query event_data . read_receipt = self . _GetRowValue ( query_hash , row , 'read_receipt' ) event_data . service = self . _GetRowValue ( query_hash , row , 'service' ) event_data . text = self . _GetRowValue ( query_hash , row , 'text' ) timestamp = self . _GetRowValue ( query_hash , row , 'date' ) date_time = dfdatetime_cocoa_time . CocoaTime ( timestamp = timestamp ) event = time_events . DateTimeValuesEvent ( date_time , definitions . TIME_DESCRIPTION_CREATION ) parser_mediator . ProduceEventWithEventData ( event , event_data )
Parses a message row.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      query (str): query that created the row.
      row (sqlite3.Row): row.