#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/8/10 16:53
# @Author  : Kay
# @Site    : 
# @File    : JugementSensorData.py
# @Software: PyCharm Community Edition

from  Public.SolveSensorLog import SolveSensorLog
from  Public.SenSorCheckPoint import SenSorCheckpoint
import  datetime
class JugementSensorData:
    @staticmethod
    def JugementData(functionName, server,event_name,distinct_id):
        func = getattr(server, functionName)
        excption = func()
        SensorData = SolveSensorLog().getSensorLog(event_name,distinct_id,excption)
        sensorResult = SenSorCheckpoint(SensorData, excption).checkPoint()
        if len(sensorResult) > 0:
            raise Exception(" Error" + sensorResult)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/8/10 16:53
# @Author  : Kay
# @Site    : 
# @File    : JugementSensorData.py
# @Software: PyCharm Community Edition

from  Public.SolveSensorLog import SolveSensorLog
from  Public.SenSorCheckPoint import SenSorCheckpoint
import  datetime
class JugementSensorData:
    @staticmethod
    def JugementData(functionName, server,event_name,distinct_id):
        func = getattr(server, functionName)
        excption = func()
        SensorData = SolveSensorLog().getSensorLog(event_name,distinct_id,excption)
        sensorResult = SenSorCheckpoint(SensorData, excption).checkPoint()
        if len(sensorResult) > 0:
            raise Exception(" Error" + sensorResult)
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time    : 2018/8/10 16:53 # @Author  : Kay # @Site    : # @File    : JugementSensorData.py # @Software: PyCharm Community Edition