Contribute Points
Contributes points to the joined guild.
Call Information
public void PersonalPoint (string tableCode, int point, PlayNANOODelegate callback) {}
public void PersonalPoint (string tableCode, int point, string extraData, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| tableCode | Table code | string |
| point | Contribution points | integer |
| extraData | Additional data | string |
| callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
plugin.Guild.PersonalPoint("tableCode", 100, (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 Key | Description | Type |
|---|---|---|
| Status | Processing result | string |