Get all Dampenings for a Trigger (1 Dampening per mode).

        :param trigger_id: Trigger definition id to be retrieved.
        :param trigger_mode: Optional TriggerMode which is only fetched
        :type trigger_mode: TriggerMode
        :return: List of Dampening objects

def dampenings(self, trigger_id, trigger_mode=None):
        """
        Get all Dampenings for a Trigger (1 Dampening per mode).

        :param trigger_id: Trigger definition id to be retrieved.
        :param trigger_mode: Optional TriggerMode which is only fetched
        :type trigger_mode: TriggerMode
        :return: List of Dampening objects
        """
        if trigger_mode is not None:
            url = self._service_url(['triggers', trigger_id, 'dampenings', 'mode', trigger_mode])
        else:
            url = self._service_url(['triggers', trigger_id, 'dampenings'])

        data = self._get(url)
        return Dampening.list_to_object_list(data)