def __init__(self, length, trans_mode=ADSTRANS_SERVERONCHA,
                 max_delay=1e-4, cycle_time=1e-4):
        # type: (int, int, float, float) -> None
        """Create a new NotificationAttrib object.

        :param int length: length of the data
        :param int trans_mode: transmission mode
        :param float max_delay: maximum delay in ms
        :param float cycle_time: cycle time in ms

        """
        self._attrib = SAdsNotificationAttrib()
        if length:
            self._attrib.cbLength = length
        if trans_mode:
            self._attrib.nTransMode = trans_mode
        if max_delay:
            self._attrib.nMaxDelay = int(max_delay * 1e4)
        if cycle_time:
            self._attrib.nCycleTime = int(cycle_time * 1e4)
def __init__ ( self , length , trans_mode = ADSTRANS_SERVERONCHA , max_delay = 1e-4 , cycle_time = 1e-4 ) : self . _attrib = SAdsNotificationAttrib ( ) if length : self . _attrib . cbLength = length if trans_mode : self . _attrib . nTransMode = trans_mode if max_delay : self . _attrib . nMaxDelay = int ( max_delay * 1e4 ) if cycle_time : self . _attrib . nCycleTime = int ( cycle_time * 1e4 )
Create a new NotificationAttrib object.

        :param int length: length of the data
        :param int trans_mode: transmission mode
        :param float max_delay: maximum delay in ms
        :param float cycle_time: cycle time in ms