# coding: utf-8

"""
    Classified Leads API

    The <b>Leads API</b> lets sellers return leads generated by their classified ad listings and includes any contact information that prospective buyers have submitted. A seller can retrieve leads for listed items for a specified marketplace optionally filtered by specified search criteria. Use this resource to retrieve sales-lead information for classified ad listings. For additional information on classified adds, see <a href=\"https://www.ebay.com/help/selling/listings/listing-tips/selling-classified-ads?id=4167\" target=\"_blank\">Selling with Classified Ads</a>.<p>The <b>getClassifiedLeadsByItemId</b> method retrieves leads for a specific classified ad listing, while <b>getAllClassifiedLeads</b> method retrieves leads for all active classified ad listings.</p><p><span class=\"tablenote\"><b>Note:</b> This is a <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\"  alt=\"Limited Release\" />(Limited Release)</a> API available only to select developers approved by business units. For information on how to obtain access to this API in production, please contact eBay support.</span></p>  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class ClassifiedLeadsListResponse(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 = {
        'classified_leads': 'list[ClassifiedLead]',
        'total_items': 'int',
        'total_leads': 'int'
    }

    attribute_map = {
        'classified_leads': 'classifiedLeads',
        'total_items': 'totalItems',
        'total_leads': 'totalLeads'
    }

    def __init__(self, classified_leads=None, total_items=None, total_leads=None):  # noqa: E501
        """ClassifiedLeadsListResponse - a model defined in Swagger"""  # noqa: E501
        self._classified_leads = None
        self._total_items = None
        self._total_leads = None
        self.discriminator = None
        if classified_leads is not None:
            self.classified_leads = classified_leads
        if total_items is not None:
            self.total_items = total_items
        if total_leads is not None:
            self.total_leads = total_leads

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

        An array of leads for the seller's active classified ad listings.  # noqa: E501

        :return: The classified_leads of this ClassifiedLeadsListResponse.  # noqa: E501
        :rtype: list[ClassifiedLead]
        """
        return self._classified_leads

    @classified_leads.setter
    def classified_leads(self, classified_leads):
        """Sets the classified_leads of this ClassifiedLeadsListResponse.

        An array of leads for the seller's active classified ad listings.  # noqa: E501

        :param classified_leads: The classified_leads of this ClassifiedLeadsListResponse.  # noqa: E501
        :type: list[ClassifiedLead]
        """

        self._classified_leads = classified_leads

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

        The total number of listings returned.  # noqa: E501

        :return: The total_items of this ClassifiedLeadsListResponse.  # noqa: E501
        :rtype: int
        """
        return self._total_items

    @total_items.setter
    def total_items(self, total_items):
        """Sets the total_items of this ClassifiedLeadsListResponse.

        The total number of listings returned.  # noqa: E501

        :param total_items: The total_items of this ClassifiedLeadsListResponse.  # noqa: E501
        :type: int
        """

        self._total_items = total_items

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

        The total number of leads returned for all listings.  # noqa: E501

        :return: The total_leads of this ClassifiedLeadsListResponse.  # noqa: E501
        :rtype: int
        """
        return self._total_leads

    @total_leads.setter
    def total_leads(self, total_leads):
        """Sets the total_leads of this ClassifiedLeadsListResponse.

        The total number of leads returned for all listings.  # noqa: E501

        :param total_leads: The total_leads of this ClassifiedLeadsListResponse.  # noqa: E501
        :type: int
        """

        self._total_leads = total_leads

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

        return self.__dict__ == other.__dict__

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