Skip to main content

Change Member Grade

Changes the grade of a player who has joined the guild. Player grades are limited to administrator and regular member.

Call Information

public void MemberChangeGrade (string tableCode, string uid, string uuid, int grade, PlayNANOODelegate callback) {}

Call Details

ParameterDescriptionType
tableCodeTable codestring
uidGuild unique identifier IDstring
uuidPlayer identifier IDstring
gradeGrade code
1 : Regular member
98 : Administrator
integer
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

plugin.Guild.MemberChangeGrade("tableCode", "uid", "uuid", 98, (status, error, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Status"].ToString());
}
else
{
Debug.Log("Fail");
}
});
}
}

Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "string"
}

Response Details

Data KeyDescriptionType
StatusProcessing resultstring