> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFFriendsFriendInfo

> PFFriendsFriendInfo 数据模型。

PFFriendsFriendInfo 数据模型。

## 语法

```cpp theme={null}
typedef struct PFFriendsFriendInfo {  
    PFUserFacebookInfo const* facebookInfo;  
    const char* friendPlayFabId;  
    PFUserGameCenterInfo const* gameCenterInfo;  
    PFPlayerProfileModel const* profile;  
    PFUserPsnInfo const* PSNInfo;  
    PFUserSteamInfo const* steamInfo;  
    const char* const* tags;  
    uint32_t tagsCount;  
    const char* titleDisplayName;  
    const char* username;  
    PFUserXboxInfo const* xboxInfo;  
} PFFriendsFriendInfo;  
```

### 成员

**`facebookInfo`**   [PFUserFacebookInfo](/services/playfab/api-references/c/pftypes/structs/pfuserfacebookinfo) const\*<br />*may be nullptr*

（可选）可用的 Facebook 信息（如果用户和已连接的 Facebook 好友在同一标题中都有 PlayFab 帐户）。

**`friendPlayFabId`**   const char\*<br />*is null-terminated*

（可选）此好友的 PlayFab 唯一标识符。

**`gameCenterInfo`**   [PFUserGameCenterInfo](/services/playfab/api-references/c/pftypes/structs/pfusergamecenterinfo) const\*<br />*may be nullptr*

（可选）可用的 Game Center 信息（如果用户和已连接的 Game Center 好友在同一标题中都有 PlayFab 帐户）。

**`profile`**   [PFPlayerProfileModel](/services/playfab/api-references/c/pftypes/structs/pfplayerprofilemodel) const\*<br />*may be nullptr*

（可选）用户的档案（如果已请求）。

**`PSNInfo`**   [PFUserPsnInfo](/services/playfab/api-references/c/pftypes/structs/pfuserpsninfo) const\*<br />*may be nullptr*

（可选）可用的 PlayStation :tm: Network 信息，如果用户已连接 PlayStation :tm Network 好友，两者在同一标题中都有 PlayFab 帐户。

**`steamInfo`**   [PFUserSteamInfo](/services/playfab/api-references/c/pftypes/structs/pfusersteaminfo) const\*<br />*may be nullptr*

（可选）可用的 Steam 信息（如果用户和已连接的 Steam 好友在同一标题中都有 PlayFab 帐户）。

**`tags`**   const char\* const\*<br />*may be nullptr*

（可选）与此好友关联的标签。

**`tagsCount`**   uint32\_t

tags 的计数

**`titleDisplayName`**   const char\*<br />*is null-terminated*

（可选）此好友的标题特定显示名称。

**`username`**   const char\*<br />*is null-terminated*

（可选）此好友的 PlayFab 唯一用户名。

**`xboxInfo`**   [PFUserXboxInfo](/services/playfab/api-references/c/pftypes/structs/pfuserxboxinfo) const\*<br />*may be nullptr*

（可选）可用的 XBOX 信息（如果用户和已连接的 XBOX Live 好友在同一标题中都有 PlayFab 帐户）。

## 要求

**头文件：** PFFriendsTypes.h

## 另请参阅

[PFFriendsTypes 成员](/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members)


## Related topics

- [PFFriendsGetFriendsListResult](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsgetfriendslistresult.md)
- [Services C API overview - PFFriendsTypes.h](/zh-CN/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members.md)
- [PFFriendsAddFriendResult](/zh-CN/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult.md)
- [PFFriendsExternalFriendSources](/zh-CN/services/playfab/api-references/c/pffriendstypes/enums/pffriendsexternalfriendsources.md)
- [PFFriendsServerAddFriendAsync](/zh-CN/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
