def __init__(self, mac, properties, online):
    self.mac = mac
    self.properties = properties
    if online:
        self.lastseen = NOW_TIMESTAMP
        self.firstseen = NOW_TIMESTAMP
    else:
        self.lastseen = None
        self.firstseen = None
    self.online = online
    self.index = None
    self.done = False
def __init__(self, mac, properties, online):
    self.mac = mac
    self.properties = properties
    if online:
        self.lastseen = NOW_TIMESTAMP
        self.firstseen = NOW_TIMESTAMP
    else:
        self.lastseen = None
        self.firstseen = None
    self.online = online
    self.index = None
    self.done = False