# Path: moira_client/client.py
# class InvalidJSONError(Exception):
#     def __init__(self, content):
#         """
# 
#         :param content: bytes response content
#         """
#         self.content = content
# 
# Path: moira_client/client.py
# class ResponseStructureError(Exception):
#     def __init__(self, msg, content):
#         """
# 
#         :param msg: str error message
#         :param content: dict response content
#         """
#         self.msg = msg
#         self.content = content


from ..client import InvalidJSONError
from ..client import ResponseStructureError
    def delete_all(self):
        """
        Remove all notifications

        :return: True on success, False otherwise
        """
        try:
            result = self._client.delete(self._full_path("all"))
            return False
        except InvalidJSONError as e:
            if e.content == b'':  # successfully if response is blank
                return True
            return False

    def delete(self, notification_id):
        """
        Remove notification by id

        :param notification_id: str notification id

        :return: True on success, False otherwise
        """

        params = {
            'id': notification_id,
        }
        try:
            result = self._client.delete(self._full_path(), params=params)
            if 'result' in result and result['result'] == 0:
                return True

# Path: moira_client/client.py
# class InvalidJSONError(Exception):
#     def __init__(self, content):
#         """
# 
#         :param content: bytes response content
#         """
#         self.content = content
# 
# Path: moira_client/client.py
# class ResponseStructureError(Exception):
#     def __init__(self, msg, content):
#         """
# 
#         :param msg: str error message
#         :param content: dict response content
#         """
#         self.msg = msg
#         self.content = content


# Path: moira_client/models/notification.py
from ..client import InvalidJSONError
from ..client import ResponseStructureError

    def delete_all(self):
        """
        Remove all notifications

        :return: True on success, False otherwise
        """
        try:
            result = self._client.delete(self._full_path("all"))
            return False
        except InvalidJSONError as e:
            if e.content == b'':  # successfully if response is blank
                return True
            return False

    def delete(self, notification_id):
        """
        Remove notification by id

        :param notification_id: str notification id

        :return: True on success, False otherwise
        """

        params = {
            'id': notification_id,
        }
        try:
            result = self._client.delete(self._full_path(), params=params)
            if 'result' in result and result['result'] == 0:
                return True

        except InvalidJSONError as e: