> ## 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.

# XblSocialManagerUser

> XblSocialManagerUser

# XblSocialManagerUser

Utilisateur social XBOX contenant les données de profil, de présence, de couleur préférée et d'historique des titres.

## Syntaxe

```cpp theme={null}
typedef struct XblSocialManagerUser {  
    uint64_t xboxUserId;  
    bool isFavorite;  
    bool isFriend;  
    bool isFollowingUser;  
    bool isFollowedByCaller;  
    char displayName[XBL_DISPLAY_NAME_CHAR_SIZE];  
    char realName[XBL_REAL_NAME_CHAR_SIZE];  
    char displayPicUrlRaw[XBL_DISPLAY_PIC_URL_RAW_CHAR_SIZE];  
    bool useAvatar;  
    char gamerscore[XBL_GAMERSCORE_CHAR_SIZE];  
    char gamertag[XBL_GAMERTAG_CHAR_SIZE];  
    char modernGamertag[XBL_MODERN_GAMERTAG_CHAR_SIZE];  
    char modernGamertagSuffix[XBL_MODERN_GAMERTAG_SUFFIX_CHAR_SIZE];  
    char uniqueModernGamertag[XBL_UNIQUE_MODERN_GAMERTAG_CHAR_SIZE];  
    XblSocialManagerPresenceRecord presenceRecord;  
    XblTitleHistory titleHistory;  
    XblPreferredColor preferredColor;  
} XblSocialManagerUser  
```

### Membres

*xboxUserId*\
Type : uint64\_t

L'ID d'utilisateur XBOX.

*isFavorite*\
Type : bool

Indique s'il s'agit d'un favori.

*isFriend*\
Type : bool

Indique s'il existe une relation mutuelle d'abonné/abonnement entre un utilisateur et un autre utilisateur

*isFollowingUser*\
Type : bool

N'indique plus si un utilisateur appelant suit un utilisateur donné. Conservé à des fins de rétrocompatibilité. La valeur de ce champ est déterminée par la valeur de 'isFriend'

*isFollowedByCaller*\
Type : bool

N'indique plus si un utilisateur appelant est suivi par un utilisateur donné. Conservé à des fins de rétrocompatibilité. La valeur de ce champ est déterminée par la valeur de 'isFriend'

*displayName*\
Type : char\[XBL\_DISPLAY\_NAME\_CHAR\_SIZE]

Le nom d'affichage encodé en UTF-8. De nombreuses opérations par lots effectuées par XblSocialManager ne retourneront pas de displayName pour les joueurs. Utilisez plutôt gamerTag ou modernGamerTag

*realName*\
Type : char\[XBL\_REAL\_NAME\_CHAR\_SIZE]

Le nom réel encodé en UTF-8.

*displayPicUrlRaw*\
Type : char\[XBL\_DISPLAY\_PIC\_URL\_RAW\_CHAR\_SIZE]

L'URI de l'image d'affichage, encodé en UTF-8.

*useAvatar*\
Type : bool

Indique s'il faut utiliser l'avatar du joueur.

*gamerscore*\
Type : char\[XBL\_GAMERSCORE\_CHAR\_SIZE]

Le pointage du joueur, encodé en UTF-8.

*gamertag*\
Type : char\[XBL\_GAMERTAG\_CHAR\_SIZE]

Le gamertag du joueur, encodé en UTF-8.

*modernGamertag*\
Type : char\[XBL\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Gamertag moderne du joueur. Son unicité n'est pas garantie.

*modernGamertagSuffix*\
Type : char\[XBL\_MODERN\_GAMERTAG\_SUFFIX\_CHAR\_SIZE]

Suffixe ajouté au gamertag moderne pour en garantir l'unicité. Peut être vide dans certains cas.

*uniqueModernGamertag*\
Type : char\[XBL\_UNIQUE\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Combinaison du gamertag moderne et du suffixe. Le format sera "MGT#suffix". Ne comptera assurément pas plus de 16 caractères affichés.

*presenceRecord*\
Type : [XblSocialManagerPresenceRecord](/fr-CA/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord)

Enregistrement de présence de l'utilisateur.

*titleHistory*\
Type : [XblTitleHistory](/fr-CA/reference/live/xsapi-c/social_manager_c/structs/xbltitlehistory)

Historique des titres de l'utilisateur.

*preferredColor*\
Type : [XblPreferredColor](/fr-CA/reference/live/xsapi-c/social_manager_c/structs/xblpreferredcolor)

Couleur préférée de l'utilisateur.

## Membre de

[XblSocialManagerEvent](/fr-CA/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent)

## Configuration requise

**En-tête :** social\_manager\_c.h

## Voir aussi

[social\_manager\_c](/fr-CA/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerUser](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [XblSocialManagerUserGroupGetUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [Social Manager overview](/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblSocialManagerUserGroupGetLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetlocaluser.md)
- [XblSocialManagerUserGroupGetType](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgettype.md)
