Query Multi-Data
Queries general data.
Call Information
CacheMultiGet(ArrayList dataKeys, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
dataKeys | Data key | ArrayList |
callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
ArrayList cacheKeys = new ArrayList();
cacheKeys.Add("TEST001");
cacheKeys.Add("TEST002");
cacheKeys.Add("TEST003");
plugin.CacheMultiGet(cacheKeys, (state, message, rawData, dictionary) => {
if (state.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)dictionary["values"])
{
Debug.Log(value["key"]);
Debug.Log(value["value"]);
}
}
else
{
Debug.Log("Fail");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : [
{
"key" : "String",
"value" : "String"
}
]
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
value.key | Data key | string |
value.value | Data value | string |