#NEWLINE# def __init__( self , transport , payload , url , token = None , item_mime_type = None , **kwargs ) : #NEWLINE# #INDENT# super ( ListResource , self ) . __init__ ( transport , payload , url , token = token , ** kwargs ) #NEWLINE# self . _item_mime_type = item_mime_type #NEWLINE# if token : #NEWLINE# #INDENT# self . _item_list = payload [ self . _token ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _item_list = payload #NEWLINE# #UNINDENT# self . num_items = len ( self . _item_list ) #NEWLINE# self . total_results = payload [ 'total_results' ]