# coding: utf-8

"""
    Emby Server REST API (BETA)
"""

import pprint
import re  # noqa: F401

import six

class RecommendationDto(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 = {
        'items': 'list[BaseItemDto]',
        'recommendation_type': 'RecommendationType',
        'baseline_item_name': 'str',
        'category_id': 'int'
    }

    attribute_map = {
        'items': 'Items',
        'recommendation_type': 'RecommendationType',
        'baseline_item_name': 'BaselineItemName',
        'category_id': 'CategoryId'
    }

    def __init__(self, items=None, recommendation_type=None, baseline_item_name=None, category_id=None):  # noqa: E501
        """RecommendationDto - a model defined in Swagger"""  # noqa: E501
        self._items = None
        self._recommendation_type = None
        self._baseline_item_name = None
        self._category_id = None
        self.discriminator = None
        if items is not None:
            self.items = items
        if recommendation_type is not None:
            self.recommendation_type = recommendation_type
        if baseline_item_name is not None:
            self.baseline_item_name = baseline_item_name
        if category_id is not None:
            self.category_id = category_id

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


        :return: The items of this RecommendationDto.  # noqa: E501
        :rtype: list[BaseItemDto]
        """
        return self._items

    @items.setter
    def items(self, items):
        """Sets the items of this RecommendationDto.


        :param items: The items of this RecommendationDto.  # noqa: E501
        :type: list[BaseItemDto]
        """

        self._items = items

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


        :return: The recommendation_type of this RecommendationDto.  # noqa: E501
        :rtype: RecommendationType
        """
        return self._recommendation_type

    @recommendation_type.setter
    def recommendation_type(self, recommendation_type):
        """Sets the recommendation_type of this RecommendationDto.


        :param recommendation_type: The recommendation_type of this RecommendationDto.  # noqa: E501
        :type: RecommendationType
        """

        self._recommendation_type = recommendation_type

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


        :return: The baseline_item_name of this RecommendationDto.  # noqa: E501
        :rtype: str
        """
        return self._baseline_item_name

    @baseline_item_name.setter
    def baseline_item_name(self, baseline_item_name):
        """Sets the baseline_item_name of this RecommendationDto.


        :param baseline_item_name: The baseline_item_name of this RecommendationDto.  # noqa: E501
        :type: str
        """

        self._baseline_item_name = baseline_item_name

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


        :return: The category_id of this RecommendationDto.  # noqa: E501
        :rtype: int
        """
        return self._category_id

    @category_id.setter
    def category_id(self, category_id):
        """Sets the category_id of this RecommendationDto.


        :param category_id: The category_id of this RecommendationDto.  # noqa: E501
        :type: int
        """

        self._category_id = category_id

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

        return self.__dict__ == other.__dict__

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