# Path: flask_github/client/requests.py
# class UserListResponse(msgs.Message):
#   response = msgs.MessageField('User', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class RepoListResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1, repeated=True)


from ..requests import UserListResponse
from ..requests import RepoListResponse

from __future__ import unicode_literals

class ReposWatching:
  def __init__(self, client):
    self.client = client

  def list_watchers(self, repo, user=None, page=1):
    return self.client.get(
      'repos/%s/%s/subscribers' % (

# Path: flask_github/client/requests.py
# class UserListResponse(msgs.Message):
#   response = msgs.MessageField('User', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class RepoListResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1, repeated=True)


# Path: flask_github/client/repos/reposwatching.py
from ..requests import UserListResponse
from ..requests import RepoListResponse

from __future__ import unicode_literals

class ReposWatching:
  def __init__(self, client):
    self.client = client

  def list_watchers(self, repo, user=None, page=1):
    return self.client.get(
      'repos/%s/%s/subscribers' % (

        self.client.user(user), repo), msg_type=UserListResponse)
