# 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 LimitSwapsSummaryResponse(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 = {
        'total_limit_swaps': 'int',
        'total_value_usd': 'str',
        'asset_pairs': 'list[AssetPairSummary]',
        'oldest_swap_blocks': 'int',
        'average_age_blocks': 'int'
    }

    attribute_map = {
        'total_limit_swaps': 'total_limit_swaps',
        'total_value_usd': 'total_value_usd',
        'asset_pairs': 'asset_pairs',
        'oldest_swap_blocks': 'oldest_swap_blocks',
        'average_age_blocks': 'average_age_blocks'
    }

    def __init__(self, total_limit_swaps=None, total_value_usd=None, asset_pairs=None, oldest_swap_blocks=None, average_age_blocks=None):  # noqa: E501
        """LimitSwapsSummaryResponse - a model defined in Swagger"""  # noqa: E501
        self._total_limit_swaps = None
        self._total_value_usd = None
        self._asset_pairs = None
        self._oldest_swap_blocks = None
        self._average_age_blocks = None
        self.discriminator = None
        if total_limit_swaps is not None:
            self.total_limit_swaps = total_limit_swaps
        if total_value_usd is not None:
            self.total_value_usd = total_value_usd
        if asset_pairs is not None:
            self.asset_pairs = asset_pairs
        if oldest_swap_blocks is not None:
            self.oldest_swap_blocks = oldest_swap_blocks
        if average_age_blocks is not None:
            self.average_age_blocks = average_age_blocks

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

        Total number of limit swaps  # noqa: E501

        :return: The total_limit_swaps of this LimitSwapsSummaryResponse.  # noqa: E501
        :rtype: int
        """
        return self._total_limit_swaps

    @total_limit_swaps.setter
    def total_limit_swaps(self, total_limit_swaps):
        """Sets the total_limit_swaps of this LimitSwapsSummaryResponse.

        Total number of limit swaps  # noqa: E501

        :param total_limit_swaps: The total_limit_swaps of this LimitSwapsSummaryResponse.  # noqa: E501
        :type: int
        """

        self._total_limit_swaps = total_limit_swaps

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

        Total USD value of all limit swaps  # noqa: E501

        :return: The total_value_usd of this LimitSwapsSummaryResponse.  # 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 LimitSwapsSummaryResponse.

        Total USD value of all limit swaps  # noqa: E501

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

        self._total_value_usd = total_value_usd

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

        Summary statistics by asset pair  # noqa: E501

        :return: The asset_pairs of this LimitSwapsSummaryResponse.  # noqa: E501
        :rtype: list[AssetPairSummary]
        """
        return self._asset_pairs

    @asset_pairs.setter
    def asset_pairs(self, asset_pairs):
        """Sets the asset_pairs of this LimitSwapsSummaryResponse.

        Summary statistics by asset pair  # noqa: E501

        :param asset_pairs: The asset_pairs of this LimitSwapsSummaryResponse.  # noqa: E501
        :type: list[AssetPairSummary]
        """

        self._asset_pairs = asset_pairs

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

        Age in blocks of the oldest limit swap  # noqa: E501

        :return: The oldest_swap_blocks of this LimitSwapsSummaryResponse.  # noqa: E501
        :rtype: int
        """
        return self._oldest_swap_blocks

    @oldest_swap_blocks.setter
    def oldest_swap_blocks(self, oldest_swap_blocks):
        """Sets the oldest_swap_blocks of this LimitSwapsSummaryResponse.

        Age in blocks of the oldest limit swap  # noqa: E501

        :param oldest_swap_blocks: The oldest_swap_blocks of this LimitSwapsSummaryResponse.  # noqa: E501
        :type: int
        """

        self._oldest_swap_blocks = oldest_swap_blocks

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

        Average age in blocks of all limit swaps  # noqa: E501

        :return: The average_age_blocks of this LimitSwapsSummaryResponse.  # noqa: E501
        :rtype: int
        """
        return self._average_age_blocks

    @average_age_blocks.setter
    def average_age_blocks(self, average_age_blocks):
        """Sets the average_age_blocks of this LimitSwapsSummaryResponse.

        Average age in blocks of all limit swaps  # noqa: E501

        :param average_age_blocks: The average_age_blocks of this LimitSwapsSummaryResponse.  # noqa: E501
        :type: int
        """

        self._average_age_blocks = average_age_blocks

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

        return self.__dict__ == other.__dict__

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