#NEWLINE# def __init__( self , msg ) : #NEWLINE# #INDENT# segments = msg . topic . split ( '/' ) #NEWLINE# self . cid = segments [ 1 ] #NEWLINE# self . mid = int ( segments [ 3 ] ) #NEWLINE# payload_segs = msg . payload . split ( ',' ) #NEWLINE# self . time_created = time . mktime ( time . localtime ( float ( payload_segs [ 0 ] ) ) ) #NEWLINE# self . time_received = time . time ( )