def __init__(self, length, trans_mode=ADSTRANS_SERVERONCHA,<EOL>max_delay=<NUM_LIT>, cycle_time=<NUM_LIT>):<EOL>
self._attrib = SAdsNotificationAttrib()<EOL>if length:<EOL><INDENT>self._attrib.cbLength = length<EOL><DEDENT>if trans_mode:<EOL><INDENT>self._attrib.nTransMode = trans_mode<EOL><DEDENT>if max_delay:<EOL><INDENT>self._attrib.nMaxDelay = int(max_delay * <NUM_LIT>)<EOL><DEDENT>if cycle_time:<EOL><INDENT>self._attrib.nCycleTime = int(cycle_time * <NUM_LIT>)<EOL><DEDENT>
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