본문으로 건너뛰기

정보 조회

플레이어의 친구 수, 친구 대기자 수 정보를 조회한다.

호출 정보

FriendInfo(String friendCode, PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
friendCode친구 테이블 식별 코드string
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

string friendCode = "string";
plugin.FriendInfo(friendCode, (state, message, rawData, dictionary) => {
if(state.Equals(Configure.PN_API_STATE_SUCCESS)) {
Debug.Log(value["relationship_count"]);
Debug.Log(value["ready_count"]);
} else {
Debug.Log("Fail");
}
});
}
}

통신 결과

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

결과 상세 정보

데이터키설명타입
relationship_count친구 등록 수integer
ready_count친구 등록 대기자 수integer