# Path: InstagramAPI/src/http/Response/Objects/Comment.py
# class Comment(object):
#     def __init__(self, commentData):
#         self.status = None
#         self.username_id = None
#         self.created_at_utc = None
#         self.created_at = None
#         self.bit_flags = None
#         self.user = None
#         self.comment = None
#         self.pk = None
#         self.type = None
#         self.media_id = None
# 
#         self.status = commentData['status']
#         if 'user_id' in commentData and commentData['user_id']:
#             self.username_id = commentData['user_id']
#         self.created_at_utc = commentData['created_at_utc']
#         self.created_at = commentData['created_at']
#         if 'bit_flags' in commentData and commentData['bit_flags']:
#             self.bit_flags = commentData['bit_flags']
#         self.user = User(commentData['user'])
#         self.comment = commentData['text']
#         self.pk = commentData['pk']
#         if 'type' in commentData and commentData['type']:
#             self.type = commentData['type']
#         if 'media_id' in commentData and commentData['media_id']:
#             self.media_id = commentData['media_id']
# 
#     def getStatus(self):
#         return self.status
# 
#     def getUsernameId(self):
#         return self.username_id
# 
#     def getCreatedAtUtc(self):
#         return self.created_at_utc
# 
#     def created_at(self):
#         return self.created_at
# 
#     def getBitFlags(self):
#         return self.bit_flags
# 
#     def getUser(self):
#         return self.user
# 
#     def getComment(self):
#         return self.comment
# 
#     def getCommentId(self):
#         return self.pk
# 
#     def getType(self):
#         return self.type
# 
#     def getMediaId(self):
#         return self.media_id
# 
# Path: InstagramAPI/src/http/Response/Objects/User.py
# class User(object):
#     def __init__(self, userData):
#         self.username = None
#         self.has_anonymous_profile_picture = False
#         self.is_favorite = False
#         self.profile_pic_url = None
#         self.full_name = None
#         self.pk = None
#         self.is_verified = False
#         self.is_private = False
#         self.coeff_weight = 0
#         self.friendship_status = None
# 
#         self.username = userData['username']
#         self.profile_pic_url = userData['profile_pic_url']
#         self.full_name = userData['full_name']
#         self.pk = userData['pk']
#         if 'is_verified' in userData and userData['is_verified']:
#             self.is_verified = userData['is_verified']
#         self.is_private = userData['is_private']
#         if 'has_anonymous_profile_picture' in userData and userData['has_anonymous_profile_picture']:
#             self.has_anonymous_profile_picture = userData['has_anonymous_profile_picture']
#         if 'is_favorite' in userData and userData['is_favorite']:
#             self.is_favorite = userData['is_favorite']
#         if 'coeff_weight' in userData and userData['coeff_weight']:
#             self.coeff_weight = userData['coeff_weight']
#         if 'friendship_status' in userData and userData['friendship_status']:
#             self.friendship_status = FriendshipStatus(userData['friendship_status'])
# 
#     def getUsername(self):
#         return self.username
# 
#     def getProfilePicUrl(self):
#         return self.profile_pic_url
# 
#     def getFullName(self):
#         return self.full_name
# 
#     def getUsernameId(self):
#         return self.pk
# 
#     def isVerified(self):
#         return self.is_verified
# 
#     def isPrivate(self):
#         return self.is_private
# 
#     def hasAnonymousProfilePicture(self):
#         return self.has_anonymous_profile_picture
# 
#     def isFavorite(self):
#         return self.is_favorite
# 
#     def getCoeffWeight(self):
#         return self.coeff_weight
# 
#     def getFriendshipStatus(self):
#         return self.friendship_status
# 
# Path: InstagramAPI/src/http/Response/Response.py
# class Response(object):
#     STATUS_OK = "ok"
#     STATUS_FAIL = "fail"
# 
#     status = None
#     message = None
#     fullResponse = None
# 
#     def setStatus(self, status):
#         self.status = status
# 
#     def getStatus(self):
#         return self.status
# 
#     def setMessage(self, message):
#         self.message = message
# 
#     def getMessage(self):
#         return self.message
# 
#     def setFullResponse(self, response):
#         self.fullResponse = response
# 
#     def getFullResponse(self):
#         return self.fullResponse
# 
#     def isOk(self):
#         return self.getStatus() == Response.STATUS_OK


from InstagramAPI.src.http.Response.Objects.Comment import Comment
from .Objects.User import User
from .Response import Response


class MediaInfoResponse(Response):
    def __init__(self, response):

        self.taken_at = None
        self.image_url = None
        self.like_count = None
        self.likers = None
        self.comments = None

        if self.STATUS_OK == response['status']:


# Path: InstagramAPI/src/http/Response/Objects/Comment.py
# class Comment(object):
#     def __init__(self, commentData):
#         self.status = None
#         self.username_id = None
#         self.created_at_utc = None
#         self.created_at = None
#         self.bit_flags = None
#         self.user = None
#         self.comment = None
#         self.pk = None
#         self.type = None
#         self.media_id = None
# 
#         self.status = commentData['status']
#         if 'user_id' in commentData and commentData['user_id']:
#             self.username_id = commentData['user_id']
#         self.created_at_utc = commentData['created_at_utc']
#         self.created_at = commentData['created_at']
#         if 'bit_flags' in commentData and commentData['bit_flags']:
#             self.bit_flags = commentData['bit_flags']
#         self.user = User(commentData['user'])
#         self.comment = commentData['text']
#         self.pk = commentData['pk']
#         if 'type' in commentData and commentData['type']:
#             self.type = commentData['type']
#         if 'media_id' in commentData and commentData['media_id']:
#             self.media_id = commentData['media_id']
# 
#     def getStatus(self):
#         return self.status
# 
#     def getUsernameId(self):
#         return self.username_id
# 
#     def getCreatedAtUtc(self):
#         return self.created_at_utc
# 
#     def created_at(self):
#         return self.created_at
# 
#     def getBitFlags(self):
#         return self.bit_flags
# 
#     def getUser(self):
#         return self.user
# 
#     def getComment(self):
#         return self.comment
# 
#     def getCommentId(self):
#         return self.pk
# 
#     def getType(self):
#         return self.type
# 
#     def getMediaId(self):
#         return self.media_id
# 
# Path: InstagramAPI/src/http/Response/Objects/User.py
# class User(object):
#     def __init__(self, userData):
#         self.username = None
#         self.has_anonymous_profile_picture = False
#         self.is_favorite = False
#         self.profile_pic_url = None
#         self.full_name = None
#         self.pk = None
#         self.is_verified = False
#         self.is_private = False
#         self.coeff_weight = 0
#         self.friendship_status = None
# 
#         self.username = userData['username']
#         self.profile_pic_url = userData['profile_pic_url']
#         self.full_name = userData['full_name']
#         self.pk = userData['pk']
#         if 'is_verified' in userData and userData['is_verified']:
#             self.is_verified = userData['is_verified']
#         self.is_private = userData['is_private']
#         if 'has_anonymous_profile_picture' in userData and userData['has_anonymous_profile_picture']:
#             self.has_anonymous_profile_picture = userData['has_anonymous_profile_picture']
#         if 'is_favorite' in userData and userData['is_favorite']:
#             self.is_favorite = userData['is_favorite']
#         if 'coeff_weight' in userData and userData['coeff_weight']:
#             self.coeff_weight = userData['coeff_weight']
#         if 'friendship_status' in userData and userData['friendship_status']:
#             self.friendship_status = FriendshipStatus(userData['friendship_status'])
# 
#     def getUsername(self):
#         return self.username
# 
#     def getProfilePicUrl(self):
#         return self.profile_pic_url
# 
#     def getFullName(self):
#         return self.full_name
# 
#     def getUsernameId(self):
#         return self.pk
# 
#     def isVerified(self):
#         return self.is_verified
# 
#     def isPrivate(self):
#         return self.is_private
# 
#     def hasAnonymousProfilePicture(self):
#         return self.has_anonymous_profile_picture
# 
#     def isFavorite(self):
#         return self.is_favorite
# 
#     def getCoeffWeight(self):
#         return self.coeff_weight
# 
#     def getFriendshipStatus(self):
#         return self.friendship_status
# 
# Path: InstagramAPI/src/http/Response/Response.py
# class Response(object):
#     STATUS_OK = "ok"
#     STATUS_FAIL = "fail"
# 
#     status = None
#     message = None
#     fullResponse = None
# 
#     def setStatus(self, status):
#         self.status = status
# 
#     def getStatus(self):
#         return self.status
# 
#     def setMessage(self, message):
#         self.message = message
# 
#     def getMessage(self):
#         return self.message
# 
#     def setFullResponse(self, response):
#         self.fullResponse = response
# 
#     def getFullResponse(self):
#         return self.fullResponse
# 
#     def isOk(self):
#         return self.getStatus() == Response.STATUS_OK


# Path: InstagramAPI/src/http/Response/MediaInfoResponse.py
from InstagramAPI.src.http.Response.Objects.Comment import Comment
from .Objects.User import User
from .Response import Response



class MediaInfoResponse(Response):
    def __init__(self, response):

        self.taken_at = None
        self.image_url = None
        self.like_count = None
        self.likers = None
        self.comments = None

        if self.STATUS_OK == response['status']:


            self.taken_at = response['items'][0]['taken_at']