# Path: messagebird/base_list.py
# class BaseList(Base):
# 
#     def __init__(self, item_type):
#         """When setting items, they are instantiated as objects of type item_type."""
#         self.limit = None
#         self.offset = None
#         self.count = None
#         self.totalCount = None
#         self._links = None
#         self._items = None
# 
#         self.itemType = item_type
# 
#     @property
#     def links(self):
#         return self._links
# 
#     @links.setter
#     def links(self, value):
#         self._links = Links().load(value)
# 
#     @property
#     def items(self):
#         return self._items
# 
#     @items.setter
#     def items(self, value):
#         """Create typed objects from the dicts."""
#         items = []
#         if value is not None:
#             for item in value:
#                 items.append(self.itemType().load(item))
# 
#         self._items = items
# 
#     def __str__(self):
#         items_count = 0 if self.items is None else len(self.items)
#         return "%s with %d items.\n" % (str(self.__class__), items_count)
# 
# Path: messagebird/voice_transcription_data.py
# class VoiceTranscriptionData(Base):
# 
#     def __init__(self):
#         self.id = None
#         self.recordingId = None
#         self.legId = None
#         self.status = None
#         self._createdDatetime = None
#         self._updatedDatetime = None
#         self._links = None
# 
#     @property
#     def createdDatetime(self):
#         return self._createdDatetime
# 
#     @createdDatetime.setter
#     def createdAt(self, value):
#         if value is not None:
#             self._createdDatetime = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')
# 
#     @property
#     def updatedDatetime(self):
#         return self._updatedDatetime
# 
#     @updatedDatetime.setter
#     def updatedAt(self, value):
#         if value is not None:
#             self._updatedDatetime = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')
# 
#     def __str__(self):
#         return "\n".join([
#             'id                 : %s' % self.id,
#             'recording id       : %s' % self.recordingId,
#             'status             : %s' % self.status,
#             'leg id             : %s' % self.legId,
#             'created date time  : %s' % self._createdDatetime,
#             'updated date time  : %s' % self._updatedDatetime,
#             'links              : %s' % self._links
#         ])


from messagebird.base_list import BaseList
from messagebird.voice_transcription_data import VoiceTranscriptionData
        return self.items

    @property
    def pagination(self):
        return {
            "totalCount": self.totalCount,
            "pageCount": self.pageCount,
            "currentPage": self.currentPage,
            "perPage": self.perPage
        }

    @pagination.setter
    def pagination(self, value):
        if isinstance(value, dict):
            self.totalCount = value['totalCount']
            self.pageCount = value['pageCount']
            self.currentPage = value['currentPage']
            self.perPage = value['perPage']
            self.limit = self.perPage * self.currentPage
            self.offset = self.perPage * (self.currentPage - 1)

    @data.setter
    def data(self, value):
        if isinstance(value, list):
            self.count = len(value)
            self.items = value


class VoiceTranscriptionsView(BaseList):
    def __init__(self):

# Path: messagebird/base_list.py
# class BaseList(Base):
# 
#     def __init__(self, item_type):
#         """When setting items, they are instantiated as objects of type item_type."""
#         self.limit = None
#         self.offset = None
#         self.count = None
#         self.totalCount = None
#         self._links = None
#         self._items = None
# 
#         self.itemType = item_type
# 
#     @property
#     def links(self):
#         return self._links
# 
#     @links.setter
#     def links(self, value):
#         self._links = Links().load(value)
# 
#     @property
#     def items(self):
#         return self._items
# 
#     @items.setter
#     def items(self, value):
#         """Create typed objects from the dicts."""
#         items = []
#         if value is not None:
#             for item in value:
#                 items.append(self.itemType().load(item))
# 
#         self._items = items
# 
#     def __str__(self):
#         items_count = 0 if self.items is None else len(self.items)
#         return "%s with %d items.\n" % (str(self.__class__), items_count)
# 
# Path: messagebird/voice_transcription_data.py
# class VoiceTranscriptionData(Base):
# 
#     def __init__(self):
#         self.id = None
#         self.recordingId = None
#         self.legId = None
#         self.status = None
#         self._createdDatetime = None
#         self._updatedDatetime = None
#         self._links = None
# 
#     @property
#     def createdDatetime(self):
#         return self._createdDatetime
# 
#     @createdDatetime.setter
#     def createdAt(self, value):
#         if value is not None:
#             self._createdDatetime = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')
# 
#     @property
#     def updatedDatetime(self):
#         return self._updatedDatetime
# 
#     @updatedDatetime.setter
#     def updatedAt(self, value):
#         if value is not None:
#             self._updatedDatetime = self.value_to_time(value, '%Y-%m-%dT%H:%M:%SZ')
# 
#     def __str__(self):
#         return "\n".join([
#             'id                 : %s' % self.id,
#             'recording id       : %s' % self.recordingId,
#             'status             : %s' % self.status,
#             'leg id             : %s' % self.legId,
#             'created date time  : %s' % self._createdDatetime,
#             'updated date time  : %s' % self._updatedDatetime,
#             'links              : %s' % self._links
#         ])


# Path: messagebird/voice_transcription.py
from messagebird.base_list import BaseList
from messagebird.voice_transcription_data import VoiceTranscriptionData

        return self.items

    @property
    def pagination(self):
        return {
            "totalCount": self.totalCount,
            "pageCount": self.pageCount,
            "currentPage": self.currentPage,
            "perPage": self.perPage
        }

    @pagination.setter
    def pagination(self, value):
        if isinstance(value, dict):
            self.totalCount = value['totalCount']
            self.pageCount = value['pageCount']
            self.currentPage = value['currentPage']
            self.perPage = value['perPage']
            self.limit = self.perPage * self.currentPage
            self.offset = self.perPage * (self.currentPage - 1)

    @data.setter
    def data(self, value):
        if isinstance(value, list):
            self.count = len(value)
            self.items = value


class VoiceTranscriptionsView(BaseList):
    def __init__(self):

        super(VoiceTranscriptionsView, self).__init__(VoiceTranscriptionData)