# Path: flask_github/client/messages.py
# class IssueComment(msgs.Message):
#   body = msgs.StringField(1)
# 
# Path: flask_github/client/requests.py
# class IssueCommentResponse(msgs.Message):
#   response = msgs.MessageField('IssueComment', 1)
# 
# Path: flask_github/client/requests.py
# class IssueCommentListResponse(msgs.Message):
#   response = msgs.MessageField('IssueComment', 1, repeated=True)


from ..messages import IssueComment
from ..requests import IssueCommentResponse
from ..requests import IssueCommentListResponse

from __future__ import unicode_literals

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

  def list(self, repo, id, user=None):
    return self.client.get('repos/%s/%s/issues/%s/comments' % (
      self.client.user(user), repo, id), msg_type=IssueCommentListResponse)

  def get(self, repo, id, user=None):
    return self.client.get('repos/%s/%s/issues/comments/%s' % (

# Path: flask_github/client/messages.py
# class IssueComment(msgs.Message):
#   body = msgs.StringField(1)
# 
# Path: flask_github/client/requests.py
# class IssueCommentResponse(msgs.Message):
#   response = msgs.MessageField('IssueComment', 1)
# 
# Path: flask_github/client/requests.py
# class IssueCommentListResponse(msgs.Message):
#   response = msgs.MessageField('IssueComment', 1, repeated=True)


# Path: flask_github/client/issues/issuescomments.py
from ..messages import IssueComment
from ..requests import IssueCommentResponse
from ..requests import IssueCommentListResponse

from __future__ import unicode_literals

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

  def list(self, repo, id, user=None):
    return self.client.get('repos/%s/%s/issues/%s/comments' % (
      self.client.user(user), repo, id), msg_type=IssueCommentListResponse)

  def get(self, repo, id, user=None):
    return self.client.get('repos/%s/%s/issues/comments/%s' % (

      self.client.user(user), repo, id), msg_type=IssueCommentResponse)
