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

# XblSocialRelationship

> XblSocialRelationship

# XblSocialRelationship

ユーザーと別の XBOX ユーザーとのリレーションシップを表します。

## 構文

```cpp theme={null}
typedef struct XblSocialRelationship {  
    uint64_t xboxUserId;  
    bool isFavorite;  
    bool isFriend;  
    bool isFollowingCaller;  
    const char** socialNetworks;  
    size_t socialNetworksCount;  
} XblSocialRelationship  
```

### メンバー

*xboxUserId*\
型: uint64\_t

その人物の XBOX ユーザー識別子。

*isFavorite*\
型: bool

その人物がユーザーにとって特に大切な人物であるかどうかを示します。ユーザーのピープル リストには非常に多くの人物が含まれることがあるため、お気に入りの人物はエクスペリエンス内で優先的に扱い、お気に入りではない人物より先に表示する必要があります。

*isFriend*\
型: bool

ユーザーと別の XBOX ユーザーの間に相互フォロワー/フォロー中のリレーションシップが存在するかどうかを示します。

*isFollowingCaller*\
型: bool

フォロワー/フォロー中のリレーションシップは反映しません。現時点では下位互換性のために保持されています。このフィールドの値は、XblSocialRelationship 内の 'isFriend' の値によって決まります。

*socialNetworks*\
型: const char\*\*

この人物がリレーションシップを持っているソーシャル ネットワークを示す UTF-8 エンコードされた文字列のコレクション。

*socialNetworksCount*\
型: size\_t

socialNetworks 配列内のソーシャル ネットワーク文字列の数。

## 使用される引数

[XblSocialRelationshipResultGetRelationships](/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships)

## 要件

**ヘッダー:** social\_c.h

## 関連項目

[social\_c](/reference/live/xsapi-c/social_c/social_c_members)


## Related topics

- [XblSocialRelationshipResultGetRelationships](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships.md)
- [XblSocialRelationshipResultGetNextAsync](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextasync.md)
- [ソーシャル リレーションシップの取得](/ja-jp/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
- [XblSocialRelationshipFilter](/ja-jp/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter.md)
- [XblSocialRelationshipResultDuplicateHandle](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultduplicatehandle.md)
