#NEWLINE# @ property #NEWLINE# def data( self ) : #NEWLINE# #INDENT# msg = Message ( ) #NEWLINE# if ( self . version >= Version ( '\x12' ) ) : #NEWLINE# #INDENT# if ( self . nonce is None ) : #NEWLINE# #INDENT# raise EncodeError ( 'collision resolution required since V1.2' ) #NEWLINE# #UNINDENT# crn = struct . pack ( '>H' , self . nonce ) #NEWLINE# msg . append ( Record ( 'urn:nfc:wkt:cr' , data = crn ) ) #NEWLINE# #UNINDENT# for carrier in self . carriers : #NEWLINE# #INDENT# msg . append ( Record ( 'urn:nfc:wkt:ac' , data = str ( carrier ) ) ) #NEWLINE# #UNINDENT# return ( str ( self . version ) + str ( msg ) )