# 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

class ProfileResponse(Response):
    def __init__(self, response):
        self.username = None
        self.phone_number = None
        self.has_anonymous_profile_picture = None
        self.hd_profile_pic_versions = None
        self.gender = None
        self.birthday = None
        self.needs_email_confirm = None
        self.national_number = None
        self.profile_pic_url = None
        self.profile_pic_id = None
        self.biography = None
        self.full_name = None
        self.pk = None
        self.country_code = None
        self.hd_profile_pic_url_info = None
        self.email = None
        self.is_private = None
        self.external_url = None

        if self.STATUS_OK == response['status']:
            for p, v in response['user'].iteritems():
                setattr(self, p, v)

            self.hd_profile_pic_url_info = HdProfilePicUrlInfo(self.hd_profile_pic_url_info)
            if self.hd_profile_pic_versions:
                profile_pics_vers = []
                for profile_pic in self.hd_profile_pic_versions:

# 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/ProfileResponse.py
from InstagramAPI.src.http.Response.Objects.HdProfilePicUrlInfo import HdProfilePicUrlInfo
from .Response import Response


class ProfileResponse(Response):
    def __init__(self, response):
        self.username = None
        self.phone_number = None
        self.has_anonymous_profile_picture = None
        self.hd_profile_pic_versions = None
        self.gender = None
        self.birthday = None
        self.needs_email_confirm = None
        self.national_number = None
        self.profile_pic_url = None
        self.profile_pic_id = None
        self.biography = None
        self.full_name = None
        self.pk = None
        self.country_code = None
        self.hd_profile_pic_url_info = None
        self.email = None
        self.is_private = None
        self.external_url = None

        if self.STATUS_OK == response['status']:
            for p, v in response['user'].iteritems():
                setattr(self, p, v)

            self.hd_profile_pic_url_info = HdProfilePicUrlInfo(self.hd_profile_pic_url_info)
            if self.hd_profile_pic_versions:
                profile_pics_vers = []
                for profile_pic in self.hd_profile_pic_versions:

                    profile_pics_vers.append(HdProfilePicUrlInfo(profile_pic))