# coding: utf-8

"""
    Singlearity Baseball API

    Baseball optimization API using machine learning  # noqa: E501

    The version of the OpenAPI document: 0.1.1
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from singlearity.configuration import Configuration


class Atmosphere(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'venue': 'Venue',
        'home_team': 'Team',
        'temperature': 'int'
    }

    attribute_map = {
        'venue': 'venue',
        'home_team': 'home_team',
        'temperature': 'temperature'
    }

    def __init__(self, venue=None, home_team=None, temperature=70, local_vars_configuration=None):  # noqa: E501
        """Atmosphere - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._venue = None
        self._home_team = None
        self._temperature = None
        self.discriminator = None

        self.venue = venue
        self.home_team = home_team
        if temperature is not None:
            self.temperature = temperature

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


        :return: The venue of this Atmosphere.  # noqa: E501
        :rtype: Venue
        """
        return self._venue

    @venue.setter
    def venue(self, venue):
        """Sets the venue of this Atmosphere.


        :param venue: The venue of this Atmosphere.  # noqa: E501
        :type: Venue
        """
        if self.local_vars_configuration.client_side_validation and venue is None:  # noqa: E501
            raise ValueError("Invalid value for `venue`, must not be `None`")  # noqa: E501

        self._venue = venue

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


        :return: The home_team of this Atmosphere.  # noqa: E501
        :rtype: Team
        """
        return self._home_team

    @home_team.setter
    def home_team(self, home_team):
        """Sets the home_team of this Atmosphere.


        :param home_team: The home_team of this Atmosphere.  # noqa: E501
        :type: Team
        """
        if self.local_vars_configuration.client_side_validation and home_team is None:  # noqa: E501
            raise ValueError("Invalid value for `home_team`, must not be `None`")  # noqa: E501

        self._home_team = home_team

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


        :return: The temperature of this Atmosphere.  # noqa: E501
        :rtype: int
        """
        return self._temperature

    @temperature.setter
    def temperature(self, temperature):
        """Sets the temperature of this Atmosphere.


        :param temperature: The temperature of this Atmosphere.  # noqa: E501
        :type: int
        """

        self._temperature = temperature

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
