API C BattleNet.GetFriendGameAccountInfo

Returns information on the game the Battle.net friend is playing.
 gameAccountInfo = C_BattleNet.GetFriendGameAccountInfo(friendIndex, accountIndex)
 = C_BattleNet.GetGameAccountInfoByID(id)
 = C_BattleNet.GetGameAccountInfoByGUID(guid)
==Arguments==
===GetFriendGameAccountInfo===
:;friendIndex: - Index ranging from 1 to ()
:;accountIndex: - Index ranging from 1 to ()
===GetGameAccountInfoByID===
:;id: : gameAccountInfo.gameAccountID
===GetGameAccountInfoByGUID===
:;guid: : UnitGUID
==Returns==
:;gameAccountInfo:
==Details==
==Example==
* Shows your Battle.net friends' game information. Tested with one friend online in the mobile app, and one friend offline.
for i = 1, BNGetNumFriends() do
	for j = 1, C_BattleNet.GetFriendNumGameAccounts(i) do
		local game = C_BattleNet.GetFriendGameAccountInfo(i, j)
		print(game.gameAccountID, game.isOnline, game.clientProgram)
	end
end
-- 5, true, "BSAp"
* C_BattleNet.GetFriendAccountInfo() returns the same information in gameAccountInfo
for i = 1, BNGetNumFriends() do
	local game = C_BattleNet.GetFriendAccountInfo(i).gameAccountInfo
	print(game.gameAccountID, game.isOnline, game.clientProgram)
end
-- 5, true, "BSAp"
-- nil, false, ""
==Patch changes==