#NEWLINE# def __init__( self , conversation_id , last_message_preview , datetime , with_account_id , with_account , message_count , messages = None , done = None , page = None ) : #NEWLINE# #INDENT# self . id = conversation_id #NEWLINE# self . last_message_preview = last_message_preview #NEWLINE# self . datetime = datetime #NEWLINE# self . with_account_id = with_account_id #NEWLINE# self . with_account = with_account #NEWLINE# self . message_count = message_count #NEWLINE# self . page = page #NEWLINE# self . done = done #NEWLINE# if messages : #NEWLINE# #INDENT# self . messages = [ Message ( message [ 'id' ] , message [ 'from' ] , message [ 'account_id' ] , message [ 'sender_id' ] , message [ 'body' ] , message [ 'conversation_id' ] , message [ 'datetime' ] ) for message in messages ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . messages = None