# coding: utf-8

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

import pprint
import re  # noqa: F401

import six

class ImageOption(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 = {
        'type': 'ImageType',
        'limit': 'int',
        'min_width': 'int'
    }

    attribute_map = {
        'type': 'Type',
        'limit': 'Limit',
        'min_width': 'MinWidth'
    }

    def __init__(self, type=None, limit=None, min_width=None):  # noqa: E501
        """ImageOption - a model defined in Swagger"""  # noqa: E501
        self._type = None
        self._limit = None
        self._min_width = None
        self.discriminator = None
        if type is not None:
            self.type = type
        if limit is not None:
            self.limit = limit
        if min_width is not None:
            self.min_width = min_width

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


        :return: The type of this ImageOption.  # noqa: E501
        :rtype: ImageType
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this ImageOption.


        :param type: The type of this ImageOption.  # noqa: E501
        :type: ImageType
        """

        self._type = type

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

        The limit.  # noqa: E501

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

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

        The limit.  # noqa: E501

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

        self._limit = limit

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

        The minimum width.  # noqa: E501

        :return: The min_width of this ImageOption.  # noqa: E501
        :rtype: int
        """
        return self._min_width

    @min_width.setter
    def min_width(self, min_width):
        """Sets the min_width of this ImageOption.

        The minimum width.  # noqa: E501

        :param min_width: The min_width of this ImageOption.  # noqa: E501
        :type: int
        """

        self._min_width = min_width

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

        return self.__dict__ == other.__dict__

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