# coding: utf-8

"""
    NBA v3 Stats

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class NbaStatsBoxScore(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 = {
        'game': 'NbaStatsGame',
        'quarters': 'list[NbaStatsQuarter]',
        'team_games': 'list[NbaStatsTeamGame]',
        'player_games': 'list[NbaStatsPlayerGame]'
    }

    attribute_map = {
        'game': 'Game',
        'quarters': 'Quarters',
        'team_games': 'TeamGames',
        'player_games': 'PlayerGames'
    }

    def __init__(self, game=None, quarters=None, team_games=None, player_games=None):  # noqa: E501
        """NbaStatsBoxScore - a model defined in Swagger"""  # noqa: E501
        self._game = None
        self._quarters = None
        self._team_games = None
        self._player_games = None
        self.discriminator = None
        if game is not None:
            self.game = game
        if quarters is not None:
            self.quarters = quarters
        if team_games is not None:
            self.team_games = team_games
        if player_games is not None:
            self.player_games = player_games

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


        :return: The game of this NbaStatsBoxScore.  # noqa: E501
        :rtype: NbaStatsGame
        """
        return self._game

    @game.setter
    def game(self, game):
        """Sets the game of this NbaStatsBoxScore.


        :param game: The game of this NbaStatsBoxScore.  # noqa: E501
        :type: NbaStatsGame
        """

        self._game = game

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


        :return: The quarters of this NbaStatsBoxScore.  # noqa: E501
        :rtype: list[NbaStatsQuarter]
        """
        return self._quarters

    @quarters.setter
    def quarters(self, quarters):
        """Sets the quarters of this NbaStatsBoxScore.


        :param quarters: The quarters of this NbaStatsBoxScore.  # noqa: E501
        :type: list[NbaStatsQuarter]
        """

        self._quarters = quarters

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


        :return: The team_games of this NbaStatsBoxScore.  # noqa: E501
        :rtype: list[NbaStatsTeamGame]
        """
        return self._team_games

    @team_games.setter
    def team_games(self, team_games):
        """Sets the team_games of this NbaStatsBoxScore.


        :param team_games: The team_games of this NbaStatsBoxScore.  # noqa: E501
        :type: list[NbaStatsTeamGame]
        """

        self._team_games = team_games

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


        :return: The player_games of this NbaStatsBoxScore.  # noqa: E501
        :rtype: list[NbaStatsPlayerGame]
        """
        return self._player_games

    @player_games.setter
    def player_games(self, player_games):
        """Sets the player_games of this NbaStatsBoxScore.


        :param player_games: The player_games of this NbaStatsBoxScore.  # noqa: E501
        :type: list[NbaStatsPlayerGame]
        """

        self._player_games = player_games

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

        return self.__dict__ == other.__dict__

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