lib/metadataprotocol.js
function readNotifyMpnSubscriptionActivation(message, tokens) {
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.tableInfo = readTableInfo(tokens.slice(4), true);
	var base = 16;

	message.mpnSubscription = {};
	message.mpnSubscription.device = {};

	message.mpnSubscription.device.mpnPlatformType = protocol.decodeString(tokens[base + 1]);
	message.mpnSubscription.device.applicationId = protocol.decodeString(tokens[base + 3]);
	message.mpnSubscription.device.deviceToken = protocol.decodeString(tokens[base + 5]);
	message.mpnSubscription.trigger = protocol.decodeString(tokens[base + 7]);
	message.mpnSubscription.notificationFormat = protocol.decodeString(tokens[base + 9]);
}
function readNotifyMpnSubscriptionActivation(message, tokens) {
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.tableInfo = readTableInfo(tokens.slice(4), true);
	var base = 16;

	message.mpnSubscription = {};
	message.mpnSubscription.device = {};

	message.mpnSubscription.device.mpnPlatformType = protocol.decodeString(tokens[base + 1]);
	message.mpnSubscription.device.applicationId = protocol.decodeString(tokens[base + 3]);
	message.mpnSubscription.device.deviceToken = protocol.decodeString(tokens[base + 5]);
	message.mpnSubscription.trigger = protocol.decodeString(tokens[base + 7]);
	message.mpnSubscription.notificationFormat = protocol.decodeString(tokens[base + 9]);
}
function readNotifyMpnSubscriptionActivation ( message , tokens ) { message . userName = protocol . decodeString ( tokens [ 1 ] ) ; message . sessionId = protocol . decodeString ( tokens [ 3 ] ) ; message . tableInfo = readTableInfo ( tokens . slice ( 4 ) , true ) ; var base = 16 ; message . mpnSubscription = { } ; message . mpnSubscription . device = { } ; message . mpnSubscription . device . mpnPlatformType = protocol . decodeString ( tokens [ base + 1 ] ) ; message . mpnSubscription . device . applicationId = protocol . decodeString ( tokens [ base + 3 ] ) ; message . mpnSubscription . device . deviceToken = protocol . decodeString ( tokens [ base + 5 ] ) ; message . mpnSubscription . trigger = protocol . decodeString ( tokens [ base + 7 ] ) ; message . mpnSubscription . notificationFormat = protocol . decodeString ( tokens [ base + 9 ] ) ; }
Decode a notify MPN subscription activation 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 subscription activation request .