# Path: groupy/utils.py
# def urljoin(base, path=None):
# def parse_share_url(share_url):
# def get_rfc3339(when):
# def get_datetime(timestamp):
#     def __init__(self, key, value):
#     def __repr__(self):
#     def __call__(self, obj):
#     def __init__(self, tests):
#     def __call__(self, objects):
#     def find(self, objects):
#     def passes(self, obj):
# def make_filter(**tests):
# class AttrTest:
# class Filter:


from groupy import utils
            index = self.get_last_item_index()
            self.params[self.mode] = self.get_next_page_param(self.items[index])

    def get_last_item_index(self):
        """Return the index of the last item in the page."""
        return self.modes[self.mode]

    def get_next_page_param(self, item):
        """Return the param from the given item.

        :param item: the item that has the next page param
        :returns: next page param value
        """
        return item.id

    def fetch_next(self):
        return super().fetch_next() if self.modes[self.mode] else []


class GalleryList(MessageList):
    """Pager for gallery messages."""

    default_mode = 'before'
    modes = {
        'before': -1,
        'after': -1,
        'since': 0,
    }

    def get_next_page_param(self, item):

# Path: groupy/utils.py
# def urljoin(base, path=None):
# def parse_share_url(share_url):
# def get_rfc3339(when):
# def get_datetime(timestamp):
#     def __init__(self, key, value):
#     def __repr__(self):
#     def __call__(self, obj):
#     def __init__(self, tests):
#     def __call__(self, objects):
#     def find(self, objects):
#     def passes(self, obj):
# def make_filter(**tests):
# class AttrTest:
# class Filter:


# Path: groupy/pagers.py
from groupy import utils

            index = self.get_last_item_index()
            self.params[self.mode] = self.get_next_page_param(self.items[index])

    def get_last_item_index(self):
        """Return the index of the last item in the page."""
        return self.modes[self.mode]

    def get_next_page_param(self, item):
        """Return the param from the given item.

        :param item: the item that has the next page param
        :returns: next page param value
        """
        return item.id

    def fetch_next(self):
        return super().fetch_next() if self.modes[self.mode] else []


class GalleryList(MessageList):
    """Pager for gallery messages."""

    default_mode = 'before'
    modes = {
        'before': -1,
        'after': -1,
        'since': 0,
    }

    def get_next_page_param(self, item):

        return utils.get_rfc3339(item.created_at)