删除好友
删除玩家已审批/等待列表中的玩家信息。
调用信息
FriendDelete(String friendCode, String friendRelationshipCode, PlayNANOODelegate callback) {}
调用详细信息
| 参数 | 说明 | 类型 |
|---|---|---|
| friendCode | 好友表识别代码 | string |
| friendRelationshipCode | 好友关系识别代码 | string |
| friendCode | 通信结果 | PlayNANOODelegate |
源代码
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
string friendCode = "string";
string friendRelationshipCode = "string";
plugin.FriendDelete(friendCode, friendRelationshipCode, (state, message, rawData, dictionary) => {
if(state.Equals(Configure.PN_API_STATE_SUCCESS)) {
Debug.Log("Success");
} else {
Debug.Log("Fail");
}
});
}
}
通信结果
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : []
}