# coding: utf-8

"""
    Fitmarket

    Mali broj ljudi - donori - dijele dnevna mjerenja svoje težine.  Iz dnevne težine jednog donora određujemo vrijednosti dviju dionica:  - dionica X ima vrijednost koja odgovara težini donora na taj dan. - inverzna dionica ~X ima vrijednost (150 kg - X).  Primjetimo da:  - kako X raste, ~X pada. - X + ~X = 150 kg  Svaki igrač počinje igru sa 10,000 kg raspoloživog novca. Igrač koristi taj novac za trgovanje dionicama. Ukupna vrijednost igrača je zbroj rapoloživog novca i aktualne vrijednosti svih dionica koje posjeduje. Cilj igre je maksimizirati ukupnu vrijednost dobrim predviđanjem kretanja vrijednosti dionica. Na primjer, u prvom danu igrac kupi 125 dionica \"X\" za 80 kg. U drugom danu, dionica naraste na 82 kg. Ako igrac proda sve dionice \"X\", zaradio je 2 kg * 125 = 250 kg!  Igra ne dopušta donoru da trguje vlastitim dionicama. 

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

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""

from pprint import pformat
from six import iteritems
import re


class Status(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, total_money=None, free_money=None, shares=None):
        """
        Status - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'total_money': 'float',
            'free_money': 'float',
            'shares': 'list[StockWithCount]'
        }

        self.attribute_map = {
            'total_money': 'total_money',
            'free_money': 'free_money',
            'shares': 'shares'
        }

        self._total_money = total_money
        self._free_money = free_money
        self._shares = shares


    @property
    def total_money(self):
        """
        Gets the total_money of this Status.


        :return: The total_money of this Status.
        :rtype: float
        """
        return self._total_money

    @total_money.setter
    def total_money(self, total_money):
        """
        Sets the total_money of this Status.


        :param total_money: The total_money of this Status.
        :type: float
        """
        if total_money is None:
            raise ValueError("Invalid value for `total_money`, must not be `None`")

        self._total_money = total_money

    @property
    def free_money(self):
        """
        Gets the free_money of this Status.


        :return: The free_money of this Status.
        :rtype: float
        """
        return self._free_money

    @free_money.setter
    def free_money(self, free_money):
        """
        Sets the free_money of this Status.


        :param free_money: The free_money of this Status.
        :type: float
        """
        if free_money is None:
            raise ValueError("Invalid value for `free_money`, must not be `None`")

        self._free_money = free_money

    @property
    def shares(self):
        """
        Gets the shares of this Status.


        :return: The shares of this Status.
        :rtype: list[StockWithCount]
        """
        return self._shares

    @shares.setter
    def shares(self, shares):
        """
        Sets the shares of this Status.


        :param shares: The shares of this Status.
        :type: list[StockWithCount]
        """
        if shares is None:
            raise ValueError("Invalid value for `shares`, must not be `None`")

        self._shares = shares

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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
        """
        return self.__dict__ == other.__dict__

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