# Path: flask_github/client/requests.py
# class EventListResponse(msgs.Message):
#   response = msgs.MessageField('Event', 1, repeated=True)


from ..requests import EventListResponse

from __future__ import unicode_literals

class Events:
  def __init__(self, client):
    # TODO: Research http://developer.github.com/v3/events/types/
    self.client = client

  def list_public_events(self):
    '''List public events.'''

# Path: flask_github/client/requests.py
# class EventListResponse(msgs.Message):
#   response = msgs.MessageField('Event', 1, repeated=True)


# Path: flask_github/client/events/events.py
from ..requests import EventListResponse

from __future__ import unicode_literals

class Events:
  def __init__(self, client):
    # TODO: Research http://developer.github.com/v3/events/types/
    self.client = client

  def list_public_events(self):
    '''List public events.'''

    return self.client.get('events', msg_type=EventListResponse)
