# coding: utf-8

"""
    SparkWorks Core (CaRGO) API

    Access Interface for the SparkWorks IoT Data Analytics Platform  # noqa: E501

    OpenAPI spec version: 2.0.0
    Contact: info@sparkworks.net
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class SleepDataEntryDTO(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 = {
        'date_time': 'datetime',
        'level': 'str',
        'seconds': 'int'
    }

    attribute_map = {
        'date_time': 'dateTime',
        'level': 'level',
        'seconds': 'seconds'
    }

    def __init__(self, date_time=None, level=None, seconds=None):  # noqa: E501
        """SleepDataEntryDTO - a model defined in Swagger"""  # noqa: E501
        self._date_time = None
        self._level = None
        self._seconds = None
        self.discriminator = None
        if date_time is not None:
            self.date_time = date_time
        if level is not None:
            self.level = level
        if seconds is not None:
            self.seconds = seconds

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


        :return: The date_time of this SleepDataEntryDTO.  # noqa: E501
        :rtype: datetime
        """
        return self._date_time

    @date_time.setter
    def date_time(self, date_time):
        """Sets the date_time of this SleepDataEntryDTO.


        :param date_time: The date_time of this SleepDataEntryDTO.  # noqa: E501
        :type: datetime
        """

        self._date_time = date_time

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


        :return: The level of this SleepDataEntryDTO.  # noqa: E501
        :rtype: str
        """
        return self._level

    @level.setter
    def level(self, level):
        """Sets the level of this SleepDataEntryDTO.


        :param level: The level of this SleepDataEntryDTO.  # noqa: E501
        :type: str
        """

        self._level = level

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


        :return: The seconds of this SleepDataEntryDTO.  # noqa: E501
        :rtype: int
        """
        return self._seconds

    @seconds.setter
    def seconds(self, seconds):
        """Sets the seconds of this SleepDataEntryDTO.


        :param seconds: The seconds of this SleepDataEntryDTO.  # noqa: E501
        :type: int
        """

        self._seconds = seconds

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

        return self.__dict__ == other.__dict__

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