azext_iot/monitor/base_classes.py (13 lines of code) (raw):
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from abc import ABC, abstractmethod
class AbstractBaseParser(ABC):
def __init__(self):
super().__init__()
@abstractmethod
def parse_message(self, message) -> dict:
raise NotImplementedError()
class AbstractBaseEventsHandler(ABC):
def __init__(self):
super().__init__()
@abstractmethod
def parse_message(self, message):
raise NotImplementedError()