#NEWLINE# @ staticmethod #NEWLINE# def _build( filters , from_date = None , to_date = None ) : #NEWLINE# #INDENT# if filters : #NEWLINE# #INDENT# query = [ tuple ( x . split ( '=' , 1 ) ) for x in filters if ( '=' in x ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# query = list ( ) #NEWLINE# #UNINDENT# if from_date : #NEWLINE# #INDENT# query . append ( ( 'from-date' , from_date ) ) #NEWLINE# #UNINDENT# if to_date : #NEWLINE# #INDENT# query . append ( ( 'to-date' , to_date ) ) #NEWLINE# #UNINDENT# if ( 'sort-by' not in query ) : #NEWLINE# #INDENT# query . append ( ( 'sort-by' , 'lastReceiveTime' ) ) #NEWLINE# #UNINDENT# return query