text: # coding: utf-8
  
  """
      TextMagic API
  
      No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501
  
      OpenAPI spec version: 2
      
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  
  class MessageIn(object):
      """NOTE: This class is auto generated by the swagger code generator program.
  
      Do not edit the class manually.
      """
  
      """
      Attributes:
        swagger_types (dict): The key is attribute name
                              and the value is attribute type.
        attribute_map (dict): The key is attribute name
                              and the value is json key in definition.
      """
      swagger_types = {
          'id': 'int',
          'sender': 'str',
          'receiver': 'str',
          'message_time': 'datetime',
          'text': 'str',
          'contact_id': 'int',
          'first_name': 'str',
          'last_name': 'str',
          'avatar': 'str',
          'email': 'str'
      }
  
      attribute_map = {
          'id': 'id',
          'sender': 'sender',
          'receiver': 'receiver',
          'message_time': 'messageTime',
          'text': 'text',
          'contact_id': 'contactId',
          'first_name': 'firstName',
          'last_name': 'lastName',
          'avatar': 'avatar',
          'email': 'email'
      }
  
      def __init__(self, id=None, sender=None, receiver=None, message_time=None, text=None, contact_id=None, first_name=None, last_name=None, avatar=None, email=None):  # noqa: E501
          """MessageIn - a model defined in Swagger"""  # noqa: E501
  
          self._id = None
          self._sender = None
          self._receiver = None
          self._message_time = None
          self._text = None
          self._contact_id = None
          self._first_name = None
          self._last_name = None
          self._avatar = None
          self._email = None
          self.discriminator = None
  
          self.id = id
          self.sender = sender
          self.receiver = receiver
          self.message_time = message_time
          self.text = text
          if contact_id is not None:
              self.contact_id = contact_id
          if first_name is not None:
              self.first_name = first_name
          if last_name is not None:
              self.last_name = last_name
          self.avatar = avatar
          if email is not None:
              self.email = email
  
      @property
      def id(self):
          """Gets the id of this MessageIn.  # noqa: E501
  
          The ID of the inbound message.  # noqa: E501
  
          :return: The id of this MessageIn.  # noqa: E501
          :rtype: int
          """
          return self._id
  
      @id.setter
      def id(self, id):
          """Sets the id of this MessageIn.
  
          The ID of the inbound message.  # noqa: E501
  
          :param id: The id of this MessageIn.  # noqa: E501
          :type: int
          """
  
          self._id = id
  
      @property
      def sender(self):
          """Gets the sender of this MessageIn.  # noqa: E501
  
          The sender’s phone number.  # noqa: E501
  
          :return: The sender of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._sender
  
      @sender.setter
      def sender(self, sender):
          """Sets the sender of this MessageIn.
  
          The sender’s phone number.  # noqa: E501
  
          :param sender: The sender of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._sender = sender
  
      @property
      def receiver(self):
          """Gets the receiver of this MessageIn.  # noqa: E501
  
          The receiver’s phone number (i.e. your dedicated or shared reply number).  # noqa: E501
  
          :return: The receiver of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._receiver
  
      @receiver.setter
      def receiver(self, receiver):
          """Sets the receiver of this MessageIn.
  
          The receiver’s phone number (i.e. your dedicated or shared reply number).  # noqa: E501
  
          :param receiver: The receiver of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._receiver = receiver
  
      @property
      def message_time(self):
          """Gets the message_time of this MessageIn.  # noqa: E501
  
          The time when the message reached the TextMagic API endpoint.  # noqa: E501
  
          :return: The message_time of this MessageIn.  # noqa: E501
          :rtype: datetime
          """
          return self._message_time
  
      @message_time.setter
      def message_time(self, message_time):
          """Sets the message_time of this MessageIn.
  
          The time when the message reached the TextMagic API endpoint.  # noqa: E501
  
          :param message_time: The message_time of this MessageIn.  # noqa: E501
          :type: datetime
          """
  
          self._message_time = message_time
  
      @property
      def text(self):
          """Gets the text of this MessageIn.  # noqa: E501
  
          The text from the received message.  # noqa: E501
  
          :return: The text of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._text
  
      @text.setter
      def text(self, text):
          """Sets the text of this MessageIn.
  
          The text from the received message.  # noqa: E501
  
          :param text: The text of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._text = text
  
      @property
      def contact_id(self):
          """Gets the contact_id of this MessageIn.  # noqa: E501
  
          Sender contact ID.  # noqa: E501
  
          :return: The contact_id of this MessageIn.  # noqa: E501
          :rtype: int
          """
          return self._contact_id
  
      @contact_id.setter
      def contact_id(self, contact_id):
          """Sets the contact_id of this MessageIn.
  
          Sender contact ID.  # noqa: E501
  
          :param contact_id: The contact_id of this MessageIn.  # noqa: E501
          :type: int
          """
  
          self._contact_id = contact_id
  
      @property
      def first_name(self):
          """Gets the first_name of this MessageIn.  # noqa: E501
  
          Sender contact first name.  # noqa: E501
  
          :return: The first_name of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._first_name
  
      @first_name.setter
      def first_name(self, first_name):
          """Sets the first_name of this MessageIn.
  
          Sender contact first name.  # noqa: E501
  
          :param first_name: The first_name of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._first_name = first_name
  
      @property
      def last_name(self):
          """Gets the last_name of this MessageIn.  # noqa: E501
  
          Sender contact last name.  # noqa: E501
  
          :return: The last_name of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._last_name
  
      @last_name.setter
      def last_name(self, last_name):
          """Sets the last_name of this MessageIn.
  
          Sender contact last name.  # noqa: E501
  
          :param last_name: The last_name of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._last_name = last_name
  
      @property
      def avatar(self):
          """Gets the avatar of this MessageIn.  # noqa: E501
  
  
          :return: The avatar of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._avatar
  
      @avatar.setter
      def avatar(self, avatar):
          """Sets the avatar of this MessageIn.
  
  
          :param avatar: The avatar of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._avatar = avatar
  
      @property
      def email(self):
          """Gets the email of this MessageIn.  # noqa: E501
  
          Sender email.  # noqa: E501
  
          :return: The email of this MessageIn.  # noqa: E501
          :rtype: str
          """
          return self._email
  
      @email.setter
      def email(self, email):
          """Sets the email of this MessageIn.
  
          Sender email.  # noqa: E501
  
          :param email: The email of this MessageIn.  # noqa: E501
          :type: str
          """
  
          self._email = email
  
      def to_dict(self):
          """Returns the model properties as a dict"""
          result = {}
  
          for attr, _ in six.iteritems(self.swagger_types):
              value = getattr(self, attr)
              if isinstance(value, list):
                  result[attr] = list(map(
                      lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                      value
                  ))
              elif hasattr(value, "to_dict"):
                  result[attr] = value.to_dict()
              elif isinstance(value, dict):
                  result[attr] = dict(map(
                      lambda item: (item[0], item[1].to_dict())
                      if hasattr(item[1], "to_dict") else item,
                      value.items()
                  ))
              else:
                  result[attr] = value
          if issubclass(MessageIn, dict):
              for key, value in self.items():
                  result[key] = value
  
          return result
  
      def to_str(self):
          """Returns the string representation of the model"""
          return pprint.pformat(self.to_dict())
  
      def __repr__(self):
          """For `print` and `pprint`"""
          return self.to_str()
  
      def __eq__(self, other):
          """Returns true if both objects are equal"""
          if not isinstance(other, MessageIn):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  