def __init__(self, terms, category, sort_key, order_key, page, total_pages,
                 torrent_stubs):
        """
        :param terms: the `str` we are searching for
        :param category: the :class:`Category` of the results sought
        :param sort_key: the :class:`SearchSortKey` of the results list
        :param order_key: the :class:`SearchOrderkey` of the results list
        :param page: the `int` page number of this page (1-based numbering)
        :param total_pages: the total `int` pages of results for this search
        :param torrent_stubs: a `list` of :class:`TorrentStub` objects
        """
        self.terms = terms
        self.category = category
        self.sort_key = sort_key
        self.order_key = order_key
        self.page = page
        self.total_pages = total_pages
        if torrent_stubs:
            self.torrent_stubs = torrent_stubs
        else:
            self.torrent_stubs = []
def __init__ ( self , terms , category , sort_key , order_key , page , total_pages , torrent_stubs ) : self . terms = terms self . category = category self . sort_key = sort_key self . order_key = order_key self . page = page self . total_pages = total_pages if torrent_stubs : self . torrent_stubs = torrent_stubs else : self . torrent_stubs = [ ]
:param terms: the `str` we are searching for
        :param category: the :class:`Category` of the results sought
        :param sort_key: the :class:`SearchSortKey` of the results list
        :param order_key: the :class:`SearchOrderkey` of the results list
        :param page: the `int` page number of this page (1-based numbering)
        :param total_pages: the total `int` pages of results for this search
        :param torrent_stubs: a `list` of :class:`TorrentStub` objects