# Path: messagebird/base.py
# class Base:
#     def load(self, data):
#         if data is not None:
#             for name, value in list(data.items()):
#                 if hasattr(self, name) and not callable(getattr(self, name)):
#                     setattr(self, name, value)
# 
#         return self
# 
#     @staticmethod
#     def value_to_time(value, format='%Y-%m-%dT%H:%M:%S+00:00'):
#         if value is not None:
#             return dateutil.parser.parse(value).replace(microsecond=0)


from messagebird.base import Base

CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED = 'conversation.created'
CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED = 'conversation.updated'
CONVERSATION_WEBHOOK_EVENT_MESSAGE_CREATED = 'message.created'
CONVERSATION_WEBHOOK_EVENT_MESSAGE_UPDATED = 'message.updated'


class ConversationWebhook(Base):

    def __init__(self):
        self.id = None
        self.channelId = None
        self.url = None
        self.events = None
        self.status = None
        self._createdDatetime = None
        self._updatedDatetime = None

    @property
    def createdDatetime(self):
        return self._createdDatetime


# Path: messagebird/base.py
# class Base:
#     def load(self, data):
#         if data is not None:
#             for name, value in list(data.items()):
#                 if hasattr(self, name) and not callable(getattr(self, name)):
#                     setattr(self, name, value)
# 
#         return self
# 
#     @staticmethod
#     def value_to_time(value, format='%Y-%m-%dT%H:%M:%S+00:00'):
#         if value is not None:
#             return dateutil.parser.parse(value).replace(microsecond=0)


# Path: messagebird/conversation_webhook.py
from messagebird.base import Base


CONVERSATION_WEBHOOK_EVENT_CONVERSATION_CREATED = 'conversation.created'
CONVERSATION_WEBHOOK_EVENT_CONVERSATION_UPDATED = 'conversation.updated'
CONVERSATION_WEBHOOK_EVENT_MESSAGE_CREATED = 'message.created'
CONVERSATION_WEBHOOK_EVENT_MESSAGE_UPDATED = 'message.updated'


class ConversationWebhook(Base):

    def __init__(self):
        self.id = None
        self.channelId = None
        self.url = None
        self.events = None
        self.status = None
        self._createdDatetime = None
        self._updatedDatetime = None

    @property
    def createdDatetime(self):
        return self._createdDatetime


    @createdDatetime.setter