#NEWLINE# def decode_response( client_message , to_object = None ) : #NEWLINE# #INDENT# ' Decode response from client message' #NEWLINE# parameters = dict ( status = None , address = None , uuid = None , owner_uuid = None , serialization_version = None ) #NEWLINE# parameters [ 'status' ] = client_message . read_byte ( ) #NEWLINE# address = None #NEWLINE# if ( not client_message . read_bool ( ) ) : #NEWLINE# #INDENT# parameters [ 'address' ] = AddressCodec . decode ( client_message , to_object ) #NEWLINE# #UNINDENT# uuid = None #NEWLINE# if ( not client_message . read_bool ( ) ) : #NEWLINE# #INDENT# parameters [ 'uuid' ] = client_message . read_str ( ) #NEWLINE# #UNINDENT# owner_uuid = None #NEWLINE# if ( not client_message . read_bool ( ) ) : #NEWLINE# #INDENT# parameters [ 'owner_uuid' ] = client_message . read_str ( ) #NEWLINE# #UNINDENT# parameters [ 'serialization_version' ] = client_message . read_byte ( ) #NEWLINE# return parameters