# Path: InstagramAPI/src/http/Response/Objects/Inbox.py
# class Inbox(object):
#     def __init__(self, data):
#         self.unseen_count = None
#         self.has_older = None
#         self.unseen_count_ts = None
#         self.threads = None
# 
#         self.unseen_count = data['unseen_count']
#         self.has_older = data['has_older']
#         self.unseen_count_ts = data['unseen_count_ts']
#         self.threads = data['threads']
# 
#     def getUnseenCount(self):
#         return self.unseen_count
# 
#     def hasOlder(self):
#         return self.has_older
# 
#     def getUnseenCountTs(self):
#         return self.unseen_count_ts
# 
#     def getThreads(self):
#         return self.threads
# 
# 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.Inbox import Inbox
from .Response import Response


class V2InboxResponse(Response):
    def __init__(self, response):
        self.pending_requests_total = None
        self.seq_id = None
        self.pending_requests_users = None
        self.inbox = None
        self.subscription = None

        if self.STATUS_OK == response['status']:
            self.pending_requests_total = response['pending_requests_total']
            self.seq_id = response['seq_id']
            self.pending_requests_users = response['pending_requests_users']
            self.inbox = Inbox(response['inbox'])
            self.subscription = response['subscription']
        else:
            self.setMessage(response['message'])

        self.setStatus(response['status'])

    def getPendingRequestsTotal(self):
        return self.pending_requests_total


# Path: InstagramAPI/src/http/Response/Objects/Inbox.py
# class Inbox(object):
#     def __init__(self, data):
#         self.unseen_count = None
#         self.has_older = None
#         self.unseen_count_ts = None
#         self.threads = None
# 
#         self.unseen_count = data['unseen_count']
#         self.has_older = data['has_older']
#         self.unseen_count_ts = data['unseen_count_ts']
#         self.threads = data['threads']
# 
#     def getUnseenCount(self):
#         return self.unseen_count
# 
#     def hasOlder(self):
#         return self.has_older
# 
#     def getUnseenCountTs(self):
#         return self.unseen_count_ts
# 
#     def getThreads(self):
#         return self.threads
# 
# 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/V2InboxResponse.py
from InstagramAPI.src.http.Response.Objects.Inbox import Inbox
from .Response import Response



class V2InboxResponse(Response):
    def __init__(self, response):
        self.pending_requests_total = None
        self.seq_id = None
        self.pending_requests_users = None
        self.inbox = None
        self.subscription = None

        if self.STATUS_OK == response['status']:
            self.pending_requests_total = response['pending_requests_total']
            self.seq_id = response['seq_id']
            self.pending_requests_users = response['pending_requests_users']
            self.inbox = Inbox(response['inbox'])
            self.subscription = response['subscription']
        else:
            self.setMessage(response['message'])

        self.setStatus(response['status'])

    def getPendingRequestsTotal(self):
        return self.pending_requests_total


    def getSeqId(self):