python-ogn-client/ogn/parser/aprs_comment/generic_parser.py

13 wiersze
295 B
Python

from .base import BaseParser
class GenericParser(BaseParser):
def __init__(self):
self.beacon_type = 'generic'
def parse_position(self, aprs_comment):
return {'comment': aprs_comment}
def parse_status(self, aprs_comment):
return {'comment': aprs_comment}