# 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 BulkUpdateConversationsResponse(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 = {
        'conversations_metadata': 'ConversationsMetadata',
        'conversations_response': 'list[ConversationsResponse]'
    }

    attribute_map = {
        'conversations_metadata': 'conversationsMetadata',
        'conversations_response': 'conversationsResponse'
    }

    def __init__(self, conversations_metadata=None, conversations_response=None):  # noqa: E501
        """BulkUpdateConversationsResponse - a model defined in Swagger"""  # noqa: E501
        self._conversations_metadata = None
        self._conversations_response = None
        self.discriminator = None
        if conversations_metadata is not None:
            self.conversations_metadata = conversations_metadata
        if conversations_response is not None:
            self.conversations_response = conversations_response

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


        :return: The conversations_metadata of this BulkUpdateConversationsResponse.  # noqa: E501
        :rtype: ConversationsMetadata
        """
        return self._conversations_metadata

    @conversations_metadata.setter
    def conversations_metadata(self, conversations_metadata):
        """Sets the conversations_metadata of this BulkUpdateConversationsResponse.


        :param conversations_metadata: The conversations_metadata of this BulkUpdateConversationsResponse.  # noqa: E501
        :type: ConversationsMetadata
        """

        self._conversations_metadata = conversations_metadata

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

        This array returns a list of each conversation specified in the request, and if the requested update was successful or failed.  # noqa: E501

        :return: The conversations_response of this BulkUpdateConversationsResponse.  # noqa: E501
        :rtype: list[ConversationsResponse]
        """
        return self._conversations_response

    @conversations_response.setter
    def conversations_response(self, conversations_response):
        """Sets the conversations_response of this BulkUpdateConversationsResponse.

        This array returns a list of each conversation specified in the request, and if the requested update was successful or failed.  # noqa: E501

        :param conversations_response: The conversations_response of this BulkUpdateConversationsResponse.  # noqa: E501
        :type: list[ConversationsResponse]
        """

        self._conversations_response = conversations_response

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

        return self.__dict__ == other.__dict__

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