# coding: utf-8

"""
    Thornode API

    Thornode REST API.  # noqa: E501

    OpenAPI spec version: 3.14.1
    Contact: devs@thorchain.org
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class AssetPairSummary(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 = {
        'source_asset': 'str',
        'target_asset': 'str',
        'count': 'int',
        'total_value_usd': 'str'
    }

    attribute_map = {
        'source_asset': 'source_asset',
        'target_asset': 'target_asset',
        'count': 'count',
        'total_value_usd': 'total_value_usd'
    }

    def __init__(self, source_asset=None, target_asset=None, count=None, total_value_usd=None):  # noqa: E501
        """AssetPairSummary - a model defined in Swagger"""  # noqa: E501
        self._source_asset = None
        self._target_asset = None
        self._count = None
        self._total_value_usd = None
        self.discriminator = None
        if source_asset is not None:
            self.source_asset = source_asset
        if target_asset is not None:
            self.target_asset = target_asset
        if count is not None:
            self.count = count
        if total_value_usd is not None:
            self.total_value_usd = total_value_usd

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

        Source asset identifier  # noqa: E501

        :return: The source_asset of this AssetPairSummary.  # noqa: E501
        :rtype: str
        """
        return self._source_asset

    @source_asset.setter
    def source_asset(self, source_asset):
        """Sets the source_asset of this AssetPairSummary.

        Source asset identifier  # noqa: E501

        :param source_asset: The source_asset of this AssetPairSummary.  # noqa: E501
        :type: str
        """

        self._source_asset = source_asset

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

        Target asset identifier  # noqa: E501

        :return: The target_asset of this AssetPairSummary.  # noqa: E501
        :rtype: str
        """
        return self._target_asset

    @target_asset.setter
    def target_asset(self, target_asset):
        """Sets the target_asset of this AssetPairSummary.

        Target asset identifier  # noqa: E501

        :param target_asset: The target_asset of this AssetPairSummary.  # noqa: E501
        :type: str
        """

        self._target_asset = target_asset

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

        Number of limit swaps for this asset pair  # noqa: E501

        :return: The count of this AssetPairSummary.  # noqa: E501
        :rtype: int
        """
        return self._count

    @count.setter
    def count(self, count):
        """Sets the count of this AssetPairSummary.

        Number of limit swaps for this asset pair  # noqa: E501

        :param count: The count of this AssetPairSummary.  # noqa: E501
        :type: int
        """

        self._count = count

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

        Total USD value of limit swaps for this asset pair  # noqa: E501

        :return: The total_value_usd of this AssetPairSummary.  # noqa: E501
        :rtype: str
        """
        return self._total_value_usd

    @total_value_usd.setter
    def total_value_usd(self, total_value_usd):
        """Sets the total_value_usd of this AssetPairSummary.

        Total USD value of limit swaps for this asset pair  # noqa: E501

        :param total_value_usd: The total_value_usd of this AssetPairSummary.  # noqa: E501
        :type: str
        """

        self._total_value_usd = total_value_usd

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

        return self.__dict__ == other.__dict__

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