# 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 .Response import Response


class UsernameSuggestionsResponse(Response):
    def __init__(self, response):
        self.username_suggestions = None
        if self.STATUS_OK == response['status']:
            if 'username_suggestions' in response:
                self.username_suggestions = response['username_suggestions']
        else:
            self.setMessage(response['message'])

        self.setStatus(response['status'])

    def getUsernameSuggestions(self):

# 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/UsernameSuggestionsResponse.py
from .Response import Response



class UsernameSuggestionsResponse(Response):
    def __init__(self, response):
        self.username_suggestions = None
        if self.STATUS_OK == response['status']:
            if 'username_suggestions' in response:
                self.username_suggestions = response['username_suggestions']
        else:
            self.setMessage(response['message'])

        self.setStatus(response['status'])

    def getUsernameSuggestions(self):

        return self.username_suggestions