# 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 GameLiveDataPlays(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 = {
        'all_plays': 'list[GamePlay]',
        'scoring_plays': 'list[float]',
        'penalty_plays': 'list[float]',
        'plays_by_period': 'list[GameLiveDataPlaysPlaysByPeriod]',
        'current_play': 'GamePlay'
    }

    attribute_map = {
        'all_plays': 'allPlays',
        'scoring_plays': 'scoringPlays',
        'penalty_plays': 'penaltyPlays',
        'plays_by_period': 'playsByPeriod',
        'current_play': 'currentPlay'
    }

    def __init__(self, all_plays=None, scoring_plays=None, penalty_plays=None, plays_by_period=None, current_play=None):  # noqa: E501
        """GameLiveDataPlays - a model defined in Swagger"""  # noqa: E501
        self._all_plays = None
        self._scoring_plays = None
        self._penalty_plays = None
        self._plays_by_period = None
        self._current_play = None
        self.discriminator = None
        if all_plays is not None:
            self.all_plays = all_plays
        if scoring_plays is not None:
            self.scoring_plays = scoring_plays
        if penalty_plays is not None:
            self.penalty_plays = penalty_plays
        if plays_by_period is not None:
            self.plays_by_period = plays_by_period
        if current_play is not None:
            self.current_play = current_play

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


        :return: The all_plays of this GameLiveDataPlays.  # noqa: E501
        :rtype: list[GamePlay]
        """
        return self._all_plays

    @all_plays.setter
    def all_plays(self, all_plays):
        """Sets the all_plays of this GameLiveDataPlays.


        :param all_plays: The all_plays of this GameLiveDataPlays.  # noqa: E501
        :type: list[GamePlay]
        """

        self._all_plays = all_plays

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


        :return: The scoring_plays of this GameLiveDataPlays.  # noqa: E501
        :rtype: list[float]
        """
        return self._scoring_plays

    @scoring_plays.setter
    def scoring_plays(self, scoring_plays):
        """Sets the scoring_plays of this GameLiveDataPlays.


        :param scoring_plays: The scoring_plays of this GameLiveDataPlays.  # noqa: E501
        :type: list[float]
        """

        self._scoring_plays = scoring_plays

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


        :return: The penalty_plays of this GameLiveDataPlays.  # noqa: E501
        :rtype: list[float]
        """
        return self._penalty_plays

    @penalty_plays.setter
    def penalty_plays(self, penalty_plays):
        """Sets the penalty_plays of this GameLiveDataPlays.


        :param penalty_plays: The penalty_plays of this GameLiveDataPlays.  # noqa: E501
        :type: list[float]
        """

        self._penalty_plays = penalty_plays

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


        :return: The plays_by_period of this GameLiveDataPlays.  # noqa: E501
        :rtype: list[GameLiveDataPlaysPlaysByPeriod]
        """
        return self._plays_by_period

    @plays_by_period.setter
    def plays_by_period(self, plays_by_period):
        """Sets the plays_by_period of this GameLiveDataPlays.


        :param plays_by_period: The plays_by_period of this GameLiveDataPlays.  # noqa: E501
        :type: list[GameLiveDataPlaysPlaysByPeriod]
        """

        self._plays_by_period = plays_by_period

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


        :return: The current_play of this GameLiveDataPlays.  # noqa: E501
        :rtype: GamePlay
        """
        return self._current_play

    @current_play.setter
    def current_play(self, current_play):
        """Sets the current_play of this GameLiveDataPlays.


        :param current_play: The current_play of this GameLiveDataPlays.  # noqa: E501
        :type: GamePlay
        """

        self._current_play = current_play

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

        return self.__dict__ == other.__dict__

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