lib/metadataprotocol.js
function readNotifyMpnDeviceAccess(message, tokens) {
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.device = {};
	message.device.mpnPlatformType = protocol.decodeString(tokens[5]);
	message.device.applicationId = protocol.decodeString(tokens[7]);
	message.device.deviceToken = protocol.decodeString(tokens[9]);
}
function readNotifyMpnDeviceAccess(message, tokens) {
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.device = {};
	message.device.mpnPlatformType = protocol.decodeString(tokens[5]);
	message.device.applicationId = protocol.decodeString(tokens[7]);
	message.device.deviceToken = protocol.decodeString(tokens[9]);
}
function readNotifyMpnDeviceAccess ( message , tokens ) { message . userName = protocol . decodeString ( tokens [ 1 ] ) ; message . sessionId = protocol . decodeString ( tokens [ 3 ] ) ; message . device = { } ; message . device . mpnPlatformType = protocol . decodeString ( tokens [ 5 ] ) ; message . device . applicationId = protocol . decodeString ( tokens [ 7 ] ) ; message . device . deviceToken = protocol . decodeString ( tokens [ 9 ] ) ; }
Decode a notify MPN device access request.

@param {Object} message the message object partially initialized with the id and the verb
@param {Array} tokens the rest of the message already tokenized
@private
Decode a notify MPN device access request .