# coding: utf-8

"""
    NHL API

    Documenting the publicly accessible portions of the NHL API.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class GameLiveData(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 = {
        'plays': 'GameLiveDataPlays',
        'linescore': 'GameLinescore',
        'boxscore': 'GameBoxscore',
        'decisions': 'GameLiveDataDecisions'
    }

    attribute_map = {
        'plays': 'plays',
        'linescore': 'linescore',
        'boxscore': 'boxscore',
        'decisions': 'decisions'
    }

    def __init__(self, plays=None, linescore=None, boxscore=None, decisions=None):  # noqa: E501
        """GameLiveData - a model defined in Swagger"""  # noqa: E501
        self._plays = None
        self._linescore = None
        self._boxscore = None
        self._decisions = None
        self.discriminator = None
        if plays is not None:
            self.plays = plays
        if linescore is not None:
            self.linescore = linescore
        if boxscore is not None:
            self.boxscore = boxscore
        if decisions is not None:
            self.decisions = decisions

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


        :return: The plays of this GameLiveData.  # noqa: E501
        :rtype: GameLiveDataPlays
        """
        return self._plays

    @plays.setter
    def plays(self, plays):
        """Sets the plays of this GameLiveData.


        :param plays: The plays of this GameLiveData.  # noqa: E501
        :type: GameLiveDataPlays
        """

        self._plays = plays

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


        :return: The linescore of this GameLiveData.  # noqa: E501
        :rtype: GameLinescore
        """
        return self._linescore

    @linescore.setter
    def linescore(self, linescore):
        """Sets the linescore of this GameLiveData.


        :param linescore: The linescore of this GameLiveData.  # noqa: E501
        :type: GameLinescore
        """

        self._linescore = linescore

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


        :return: The boxscore of this GameLiveData.  # noqa: E501
        :rtype: GameBoxscore
        """
        return self._boxscore

    @boxscore.setter
    def boxscore(self, boxscore):
        """Sets the boxscore of this GameLiveData.


        :param boxscore: The boxscore of this GameLiveData.  # noqa: E501
        :type: GameBoxscore
        """

        self._boxscore = boxscore

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


        :return: The decisions of this GameLiveData.  # noqa: E501
        :rtype: GameLiveDataDecisions
        """
        return self._decisions

    @decisions.setter
    def decisions(self, decisions):
        """Sets the decisions of this GameLiveData.


        :param decisions: The decisions of this GameLiveData.  # noqa: E501
        :type: GameLiveDataDecisions
        """

        self._decisions = decisions

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

        return self.__dict__ == other.__dict__

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