# Path: flask_github/client/messages.py
# class GistComment(msgs.Message):
#   pass
# 
# Path: flask_github/client/requests.py
# class GistCommentResponse(msgs.Message):
#   response = msgs.MessageField('GistComment', 1)
# 
# Path: flask_github/client/requests.py
# class GistCommentListResponse(msgs.Message):
#   response = msgs.MessageField('GistComment', 1, repeated=True)


from ..messages import GistComment
from ..requests import GistCommentResponse
from ..requests import GistCommentListResponse

from __future__ import unicode_literals

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

  def list(self, id):
    return self.client.get(
      'gists/%s/comments' % id, msg_type=GistCommentListResponse)

  def get(self, id):
    return self.client.get(
      'gists/comments/%s' % id, msg_type=GistCommentResponse)

  def create(self, id, body):
    msg = {
      'body': body
    }
    return self.client.post(

# Path: flask_github/client/messages.py
# class GistComment(msgs.Message):
#   pass
# 
# Path: flask_github/client/requests.py
# class GistCommentResponse(msgs.Message):
#   response = msgs.MessageField('GistComment', 1)
# 
# Path: flask_github/client/requests.py
# class GistCommentListResponse(msgs.Message):
#   response = msgs.MessageField('GistComment', 1, repeated=True)


# Path: flask_github/client/gists/gistscomments.py
from ..messages import GistComment
from ..requests import GistCommentResponse
from ..requests import GistCommentListResponse

from __future__ import unicode_literals

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

  def list(self, id):
    return self.client.get(
      'gists/%s/comments' % id, msg_type=GistCommentListResponse)

  def get(self, id):
    return self.client.get(
      'gists/comments/%s' % id, msg_type=GistCommentResponse)

  def create(self, id, body):
    msg = {
      'body': body
    }
    return self.client.post(

      'gists/%s/comments' % id, data=msg, msg_type=GistCommentResponse)
