Skip to main content

Approve Friend

Approves player from the waiting list for a player.

Call Information

FriendAccept(String friendCode, String friendRelationshipCode, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
friendCodeFriend table identification codestring
friendRelationshipCodeFriend relationship identification codestring
friendCodeCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

string friendCode = "string";
string friendRelationshipCode = "string";
plugin.FriendAccept(friendCode, friendRelationshipCode, (state, message, rawData, dictionary) => {
if(state.Equals(Configure.PN_API_STATE_SUCCESS)) {
Debug.Log("Success");
} else {
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : []
}