API BNGetFriendGameAccountInfo

Returns information about the specified toon of a RealID friend.
 hasFocus, characterName, client, realmName, realmID, faction, race, class, guild, zoneName, level, gameText, broadcastText, broadcastTime, canSoR, toonID, bnetIDAccount, isGameAFK, isGameBusy
 = BNGetFriendGameAccountInfo(friendIndex)
 = BNGetGameAccountInfo(bnetIDGameAccount)
 = BNGetGameAccountInfoByGUID(guid)
==Arguments==
===BNGetFriendGameAccountInfo===
:;friendIndex: - Ranging from 1 to ()
===BNGetGameAccountInfo===
:;bnetIDGameAccount: - A unique numeric identifier for the friend during this session.
===BNGetGameAccountInfoByGUID===
:;guid:
==Returns==
:;hasFocus: - Whether or not this toon is the one currently being displayed in Blizzard's FriendFrame.
:;characterName: - The name of the logged in toon/character.
:;client: - Either "WoW" (BNET_CLIENT_WOW), "S2" (BNET_CLIENT_S2), "WTCG" (BNET_CLIENT_WTCG), "App" (BNET_CLIENT_APP), "Hero" (BNET_CLIENT_HEROES), "Pro" (BNET_CLIENT_OVERWATCH), "CLNT" (BNET_CLIENT_CLNT), or "D3" (BNET_CLIENT_D3) for World of Warcraft, StarCraft 2, Hearthstone, BNet Application, Heroes of the Storm, Overwatch, another client, or Diablo 3.
:;realmName: - The name of the logged in realm.
:;realmID: - The ID for the logged in realm.
:;faction: - The faction name (i.e., "Alliance" or "Horde").
:;race: - The localized race name (e.g., "Blood Elf").
:;class: - The localized class name (e.g., "Death Knight").
:;guild: - Seems to return "" even if the player is in a guild.
:;zoneName: - The localized zone name (e.g., "The Undercity").
:;level: - The current level (e.g., "90").
:;gameText: - For WoW, returns "zoneName - realmName". For StarCraft 2 and Diablo 3, returns the location or activity the player is currently engaged in.
:;broadcastText: - The Battle.Net broadcast message.
:;broadcastTime: - The number of seconds elapsed since the current broadcast message was sent.
:;canSoR: - Whether or not this friend can receive a Scroll of Resurrection.
:;toonID: - A unique numeric identifier for the friend's character during this session.
:;bnetIDAccount:
:;isGameAFK:
:;isGameBusy:
==Example==
local bnetIDGameAccount = select(6,BNGetFriendInfo(1)) -- assuming friend index 1 is me (Grdn)
local _, characterName, _, realmName = BNGetGameAccountInfo(bnetIDGameAccount)
print(toonName.." plays on "..realmName) -- Grdn plays on Onyxia
==Patch changes==