# coding: utf-8

"""
    SCORM Cloud Rest API

    REST API used for SCORM Cloud integrations.  # noqa: E501

    OpenAPI spec version: 2.0
    Contact: systems@rusticisoftware.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class ActivityResultSchema(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 = {
        'id': 'str',
        'title': 'str',
        'attempts': 'int',
        'activity_completion': 'str',
        'activity_success': 'str',
        'score': 'ScoreSchema',
        'time_tracked': 'str',
        'completion_amount': 'CompletionAmountSchema',
        'suspended': 'bool',
        'children': 'list[ActivityResultSchema]',
        'objectives': 'list[ObjectiveSchema]',
        'static_properties': 'StaticPropertiesSchema',
        'runtime': 'RuntimeSchema'
    }

    attribute_map = {
        'id': 'id',
        'title': 'title',
        'attempts': 'attempts',
        'activity_completion': 'activityCompletion',
        'activity_success': 'activitySuccess',
        'score': 'score',
        'time_tracked': 'timeTracked',
        'completion_amount': 'completionAmount',
        'suspended': 'suspended',
        'children': 'children',
        'objectives': 'objectives',
        'static_properties': 'staticProperties',
        'runtime': 'runtime'
    }

    def __init__(self, id=None, title=None, attempts=None, activity_completion=None, activity_success=None, score=None, time_tracked=None, completion_amount=None, suspended=None, children=None, objectives=None, static_properties=None, runtime=None):  # noqa: E501
        """ActivityResultSchema - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._title = None
        self._attempts = None
        self._activity_completion = None
        self._activity_success = None
        self._score = None
        self._time_tracked = None
        self._completion_amount = None
        self._suspended = None
        self._children = None
        self._objectives = None
        self._static_properties = None
        self._runtime = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if title is not None:
            self.title = title
        if attempts is not None:
            self.attempts = attempts
        if activity_completion is not None:
            self.activity_completion = activity_completion
        if activity_success is not None:
            self.activity_success = activity_success
        if score is not None:
            self.score = score
        if time_tracked is not None:
            self.time_tracked = time_tracked
        if completion_amount is not None:
            self.completion_amount = completion_amount
        if suspended is not None:
            self.suspended = suspended
        if children is not None:
            self.children = children
        if objectives is not None:
            self.objectives = objectives
        if static_properties is not None:
            self.static_properties = static_properties
        if runtime is not None:
            self.runtime = runtime

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

        :return: The id of this ActivityResultSchema.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this ActivityResultSchema.

        :param id: The id of this ActivityResultSchema.  # noqa: E501
        :type: str
        """

        self._id = id

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

        :return: The title of this ActivityResultSchema.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this ActivityResultSchema.

        :param title: The title of this ActivityResultSchema.  # noqa: E501
        :type: str
        """

        self._title = title

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

        :return: The attempts of this ActivityResultSchema.  # noqa: E501
        :rtype: int
        """
        return self._attempts

    @attempts.setter
    def attempts(self, attempts):
        """Sets the attempts of this ActivityResultSchema.

        :param attempts: The attempts of this ActivityResultSchema.  # noqa: E501
        :type: int
        """

        self._attempts = attempts

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

        allowed_values = ["UNKNOWN", "COMPLETED", "INCOMPLETE"]  # noqa: E501

        :return: The activity_completion of this ActivityResultSchema.  # noqa: E501
        :rtype: str
        """
        return self._activity_completion

    @activity_completion.setter
    def activity_completion(self, activity_completion):
        """Sets the activity_completion of this ActivityResultSchema.

        allowed_values = ["UNKNOWN", "COMPLETED", "INCOMPLETE"]  # noqa: E501

        :param activity_completion: The activity_completion of this ActivityResultSchema.  # noqa: E501
        :type: str
        """

        self._activity_completion = activity_completion

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

        allowed_values = ["UNKNOWN", "PASSED", "FAILED"]  # noqa: E501

        :return: The activity_success of this ActivityResultSchema.  # noqa: E501
        :rtype: str
        """
        return self._activity_success

    @activity_success.setter
    def activity_success(self, activity_success):
        """Sets the activity_success of this ActivityResultSchema.

        allowed_values = ["UNKNOWN", "PASSED", "FAILED"]  # noqa: E501

        :param activity_success: The activity_success of this ActivityResultSchema.  # noqa: E501
        :type: str
        """

        self._activity_success = activity_success

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

        :return: The score of this ActivityResultSchema.  # noqa: E501
        :rtype: ScoreSchema
        """
        return self._score

    @score.setter
    def score(self, score):
        """Sets the score of this ActivityResultSchema.

        :param score: The score of this ActivityResultSchema.  # noqa: E501
        :type: ScoreSchema
        """

        self._score = score

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

        :return: The time_tracked of this ActivityResultSchema.  # noqa: E501
        :rtype: str
        """
        return self._time_tracked

    @time_tracked.setter
    def time_tracked(self, time_tracked):
        """Sets the time_tracked of this ActivityResultSchema.

        :param time_tracked: The time_tracked of this ActivityResultSchema.  # noqa: E501
        :type: str
        """

        self._time_tracked = time_tracked

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

        :return: The completion_amount of this ActivityResultSchema.  # noqa: E501
        :rtype: CompletionAmountSchema
        """
        return self._completion_amount

    @completion_amount.setter
    def completion_amount(self, completion_amount):
        """Sets the completion_amount of this ActivityResultSchema.

        :param completion_amount: The completion_amount of this ActivityResultSchema.  # noqa: E501
        :type: CompletionAmountSchema
        """

        self._completion_amount = completion_amount

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

        :return: The suspended of this ActivityResultSchema.  # noqa: E501
        :rtype: bool
        """
        return self._suspended

    @suspended.setter
    def suspended(self, suspended):
        """Sets the suspended of this ActivityResultSchema.

        :param suspended: The suspended of this ActivityResultSchema.  # noqa: E501
        :type: bool
        """

        self._suspended = suspended

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

        :return: The children of this ActivityResultSchema.  # noqa: E501
        :rtype: list[ActivityResultSchema]
        """
        return self._children

    @children.setter
    def children(self, children):
        """Sets the children of this ActivityResultSchema.

        :param children: The children of this ActivityResultSchema.  # noqa: E501
        :type: list[ActivityResultSchema]
        """

        self._children = children

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

        :return: The objectives of this ActivityResultSchema.  # noqa: E501
        :rtype: list[ObjectiveSchema]
        """
        return self._objectives

    @objectives.setter
    def objectives(self, objectives):
        """Sets the objectives of this ActivityResultSchema.

        :param objectives: The objectives of this ActivityResultSchema.  # noqa: E501
        :type: list[ObjectiveSchema]
        """

        self._objectives = objectives

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

        :return: The static_properties of this ActivityResultSchema.  # noqa: E501
        :rtype: StaticPropertiesSchema
        """
        return self._static_properties

    @static_properties.setter
    def static_properties(self, static_properties):
        """Sets the static_properties of this ActivityResultSchema.

        :param static_properties: The static_properties of this ActivityResultSchema.  # noqa: E501
        :type: StaticPropertiesSchema
        """

        self._static_properties = static_properties

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

        :return: The runtime of this ActivityResultSchema.  # noqa: E501
        :rtype: RuntimeSchema
        """
        return self._runtime

    @runtime.setter
    def runtime(self, runtime):
        """Sets the runtime of this ActivityResultSchema.

        :param runtime: The runtime of this ActivityResultSchema.  # noqa: E501
        :type: RuntimeSchema
        """

        self._runtime = runtime

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

        return self.__dict__ == other.__dict__

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