Skip to content

Friends Protocol

Yannik Marchand edited this page Feb 4, 2021 · 17 revisions

NEX Protocols > Friends (20)

Even though this protocol is implemented on Nintendo game servers, it is never actually used. Instead, Nintendo has implemented its own friend services:

Method ID Method Name
1 AddFriend
2 AddFriendByName
3 AddFriendWithDetails
4 AddFriendByNameWithDetails
5 AcceptFriendship
6 DeclineFriendship
7 BlackList
8 BlackListByName
9 ClearRelationship
10 UpdateDetails
11 GetList
12 GetDetailedList
13 GetRelationships

(1) AddFriend

Request

Type Name
Uint32 uiPlayer
Uint32 uiDetails
String strMessage

Response

Type Name
Bool %retval%

(2) AddFriendByName

Request

Type Name
String strPlayerName
Uint32 uiDetails
String strMessage

Response

Type Name
Bool %retval%

(3) AddFriendWithDetails

Request

Type Name
Uint32 uiPlayer
Uint32 uiDetails
String strMessage

Response

Type Name
RelationshipData relationshipData

(4) AddFriendByNameWithDetails

Request

Type Name
Uint32 uiPlayer
Uint32 uiDetails
String strMessage

Response

Type Name
RelationshipData relationshipData

(5) AcceptFriendship

Request

Type Name
Uint32 uiPlayer

Response

Type Name
Bool %retval%

(6) DeclineFriendship

Request

Type Name
Uint32 uiPlayer

Response

Type Name
Bool %retval%

(7) BlackList

Request

Type Name
Uint32 uiPlayer
Uint32 uiDetails

Response

Type Name
Bool %retval%

(8) BlackListByName

Request

Type Name
String strPlayerName
Uint32 uiDetails

Response

Type Name
Bool %retval%

(9) ClearRelationship

Request

Type Name
Uint32 uiPlayer

Response

Type Name
Bool %retval%

(10) UpdateDetails

Request

Type Name
Uint32 uiPlayer
Uint32 uiDetails

Response

Type Name
Bool %retval%

(11) GetList

Request

Type Name
Uint8 byRelationship
Bool bReversed

Response

Type Name
List<Uint32> lstFriendsList

(12) GetDetailedList

Request

Type Name
Uint8 byRelationship
Bool bReversed

Response

Type Name
List<FriendData> lstFriendsList

(13) GetRelationships

Request

Type Name
ResultRange resultRange

Response

Type Name
Uint32 uiTotalCount
List<RelationshipData> lstRelationshipsList

Types

FriendData

Type Name
Uint32 m_pid
String m_strName
Uint8 m_byRelationship
Uint32 m_uiDetails
String m_strStatus

RelationshipData

Type Name
Uint32 m_pid
String m_strName
Uint8 m_byRelationship
Uint32 m_uiDetails
Uint8 m_byStatus
Clone this wiki locally