# Path: InstagramAPI/src/http/Response/Objects/HdProfilePicUrlInfo.py
# class HdProfilePicUrlInfo(object):
#     def __init__(self, response):
#         self.url = None
#         self.width = None
#         self.height = None
# 
#         self.url = response['url']
#         self.width = response['width']
#         self.height = response['height']
# 
#     def getUrl(self):
#         return self.url
# 
#     def getWidth(self):
#         return self.width
# 
#     def getHeight(self):
#         return self.height
# 
# 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.HdProfilePicUrlInfo import HdProfilePicUrlInfo
from .Response import Response
        self.can_see_organic_insights = False
        self.is_private = None
        self.can_convert_to_business = False
        self.is_business = None
        self.show_insights_terms = False
        self.hd_profile_pic_url_info = None
        self.usertag_review_enabled = False
        self.external_url = None
        self.is_favorite = None
        self.is_verified = None

        if self.STATUS_OK == response['status']:
            self.usertags_count = response['user']['usertags_count']
            self.has_anonymous_profile_picture = response['user']['has_anonymous_profile_picture']
            self.full_name = response['user']['full_name']
            self.following_count = response['user']['following_count']
            self.auto_expand_chaining = response['user']['auto_expand_chaining']
            if 'external_lynx_url' in response['user']:
                self.external_lynx_url = response['user']['external_lynx_url']

            if 'can_boost_post' in response['user']:
                self.can_boost_post = response['user']['can_boost_post']

            if 'hd_profile_pic_versions' in response['user']:
                profile_pics_vers = []
                for profile_pic in response['user']['hd_profile_pic_versions']:
                    profile_pics_vers.append(HdProfilePicUrlInfo(profile_pic))

                self.hd_profile_pic_versions = profile_pics_vers


# Path: InstagramAPI/src/http/Response/Objects/HdProfilePicUrlInfo.py
# class HdProfilePicUrlInfo(object):
#     def __init__(self, response):
#         self.url = None
#         self.width = None
#         self.height = None
# 
#         self.url = response['url']
#         self.width = response['width']
#         self.height = response['height']
# 
#     def getUrl(self):
#         return self.url
# 
#     def getWidth(self):
#         return self.width
# 
#     def getHeight(self):
#         return self.height
# 
# 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/UsernameInfoResponse.py
from InstagramAPI.src.http.Response.Objects.HdProfilePicUrlInfo import HdProfilePicUrlInfo
from .Response import Response

        self.can_see_organic_insights = False
        self.is_private = None
        self.can_convert_to_business = False
        self.is_business = None
        self.show_insights_terms = False
        self.hd_profile_pic_url_info = None
        self.usertag_review_enabled = False
        self.external_url = None
        self.is_favorite = None
        self.is_verified = None

        if self.STATUS_OK == response['status']:
            self.usertags_count = response['user']['usertags_count']
            self.has_anonymous_profile_picture = response['user']['has_anonymous_profile_picture']
            self.full_name = response['user']['full_name']
            self.following_count = response['user']['following_count']
            self.auto_expand_chaining = response['user']['auto_expand_chaining']
            if 'external_lynx_url' in response['user']:
                self.external_lynx_url = response['user']['external_lynx_url']

            if 'can_boost_post' in response['user']:
                self.can_boost_post = response['user']['can_boost_post']

            if 'hd_profile_pic_versions' in response['user']:
                profile_pics_vers = []
                for profile_pic in response['user']['hd_profile_pic_versions']:
                    profile_pics_vers.append(HdProfilePicUrlInfo(profile_pic))

                self.hd_profile_pic_versions = profile_pics_vers


            self.biography = response['user']['biography']