# coding: utf-8

"""
    M2M Public API Service

    This API allows eBay sellers to send, retrieve, and manage messages.  # noqa: E501

    OpenAPI spec version: 1.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class GetMessagesByConversationIdResponse(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 = {
        'conversation_status': 'str',
        'conversation_title': 'str',
        'conversation_type': 'str',
        'href': 'str',
        'limit': 'int',
        'messages': 'list[MessageDetail]',
        'next': 'str',
        'offset': 'int',
        'prev': 'str',
        'total': 'int'
    }

    attribute_map = {
        'conversation_status': 'conversationStatus',
        'conversation_title': 'conversationTitle',
        'conversation_type': 'conversationType',
        'href': 'href',
        'limit': 'limit',
        'messages': 'messages',
        'next': 'next',
        'offset': 'offset',
        'prev': 'prev',
        'total': 'total'
    }

    def __init__(self, conversation_status=None, conversation_title=None, conversation_type=None, href=None, limit=None, messages=None, next=None, offset=None, prev=None, total=None):  # noqa: E501
        """GetMessagesByConversationIdResponse - a model defined in Swagger"""  # noqa: E501
        self._conversation_status = None
        self._conversation_title = None
        self._conversation_type = None
        self._href = None
        self._limit = None
        self._messages = None
        self._next = None
        self._offset = None
        self._prev = None
        self._total = None
        self.discriminator = None
        if conversation_status is not None:
            self.conversation_status = conversation_status
        if conversation_title is not None:
            self.conversation_title = conversation_title
        if conversation_type is not None:
            self.conversation_type = conversation_type
        if href is not None:
            self.href = href
        if limit is not None:
            self.limit = limit
        if messages is not None:
            self.messages = messages
        if next is not None:
            self.next = next
        if offset is not None:
            self.offset = offset
        if prev is not None:
            self.prev = prev
        if total is not None:
            self.total = total

    @property
    def conversation_status(self):
        """Gets the conversation_status of this GetMessagesByConversationIdResponse.  # noqa: E501

        The current status of the conversation, such as <code>ACTIVE</code> or <code>ARCHIVE</code>.   # noqa: E501

        :return: The conversation_status of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._conversation_status

    @conversation_status.setter
    def conversation_status(self, conversation_status):
        """Sets the conversation_status of this GetMessagesByConversationIdResponse.

        The current status of the conversation, such as <code>ACTIVE</code> or <code>ARCHIVE</code>.   # noqa: E501

        :param conversation_status: The conversation_status of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._conversation_status = conversation_status

    @property
    def conversation_title(self):
        """Gets the conversation_title of this GetMessagesByConversationIdResponse.  # noqa: E501

        The title of the conversation.  # noqa: E501

        :return: The conversation_title of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._conversation_title

    @conversation_title.setter
    def conversation_title(self, conversation_title):
        """Sets the conversation_title of this GetMessagesByConversationIdResponse.

        The title of the conversation.  # noqa: E501

        :param conversation_title: The conversation_title of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._conversation_title = conversation_title

    @property
    def conversation_type(self):
        """Gets the conversation_type of this GetMessagesByConversationIdResponse.  # noqa: E501

        The type of the conversation, such as <code>FROM_EBAY</code> or <code>FROM_MEMBERS</code>.  # noqa: E501

        :return: The conversation_type of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._conversation_type

    @conversation_type.setter
    def conversation_type(self, conversation_type):
        """Sets the conversation_type of this GetMessagesByConversationIdResponse.

        The type of the conversation, such as <code>FROM_EBAY</code> or <code>FROM_MEMBERS</code>.  # noqa: E501

        :param conversation_type: The conversation_type of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._conversation_type = conversation_type

    @property
    def href(self):
        """Gets the href of this GetMessagesByConversationIdResponse.  # noqa: E501

        The URI to the current page of results.  # noqa: E501

        :return: The href of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._href

    @href.setter
    def href(self, href):
        """Sets the href of this GetMessagesByConversationIdResponse.

        The URI to the current page of results.  # noqa: E501

        :param href: The href of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._href = href

    @property
    def limit(self):
        """Gets the limit of this GetMessagesByConversationIdResponse.  # noqa: E501

        The value of the <b>limit</b> parameter submitted in the request.  # noqa: E501

        :return: The limit of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: int
        """
        return self._limit

    @limit.setter
    def limit(self, limit):
        """Sets the limit of this GetMessagesByConversationIdResponse.

        The value of the <b>limit</b> parameter submitted in the request.  # noqa: E501

        :param limit: The limit of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: int
        """

        self._limit = limit

    @property
    def messages(self):
        """Gets the messages of this GetMessagesByConversationIdResponse.  # noqa: E501

        This array returns a list of messages from the specified conversation.  # noqa: E501

        :return: The messages of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: list[MessageDetail]
        """
        return self._messages

    @messages.setter
    def messages(self, messages):
        """Sets the messages of this GetMessagesByConversationIdResponse.

        This array returns a list of messages from the specified conversation.  # noqa: E501

        :param messages: The messages of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: list[MessageDetail]
        """

        self._messages = messages

    @property
    def next(self):
        """Gets the next of this GetMessagesByConversationIdResponse.  # noqa: E501

        The URI for the next page of results.<br><br>This value is only returned if there is an additional page of results in the result set.  # noqa: E501

        :return: The next of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._next

    @next.setter
    def next(self, next):
        """Sets the next of this GetMessagesByConversationIdResponse.

        The URI for the next page of results.<br><br>This value is only returned if there is an additional page of results in the result set.  # noqa: E501

        :param next: The next of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._next = next

    @property
    def offset(self):
        """Gets the offset of this GetMessagesByConversationIdResponse.  # noqa: E501

        The value of the <b>offset</b> parameter submitted in the request.  # noqa: E501

        :return: The offset of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: int
        """
        return self._offset

    @offset.setter
    def offset(self, offset):
        """Sets the offset of this GetMessagesByConversationIdResponse.

        The value of the <b>offset</b> parameter submitted in the request.  # noqa: E501

        :param offset: The offset of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: int
        """

        self._offset = offset

    @property
    def prev(self):
        """Gets the prev of this GetMessagesByConversationIdResponse.  # noqa: E501

        The URI for the previous page of results.<br><br>This is only retuned if there is a previous page of results in the result set.  # noqa: E501

        :return: The prev of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: str
        """
        return self._prev

    @prev.setter
    def prev(self, prev):
        """Sets the prev of this GetMessagesByConversationIdResponse.

        The URI for the previous page of results.<br><br>This is only retuned if there is a previous page of results in the result set.  # noqa: E501

        :param prev: The prev of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: str
        """

        self._prev = prev

    @property
    def total(self):
        """Gets the total of this GetMessagesByConversationIdResponse.  # noqa: E501

        The total number of entries returned in the result set.  # noqa: E501

        :return: The total of this GetMessagesByConversationIdResponse.  # noqa: E501
        :rtype: int
        """
        return self._total

    @total.setter
    def total(self, total):
        """Sets the total of this GetMessagesByConversationIdResponse.

        The total number of entries returned in the result set.  # noqa: E501

        :param total: The total of this GetMessagesByConversationIdResponse.  # noqa: E501
        :type: int
        """

        self._total = total

    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(GetMessagesByConversationIdResponse, 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, GetMessagesByConversationIdResponse):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
