Пример #1
0
    IEnumerator ResponseRoutine()
    {
        yield return(new WaitForSeconds(0.5f));

        ServerAPILogRecorder.Record(new ServerAPILogRecorder.RecordData()
        {
            date = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
            url  = urlInput.text,
            type = ServerAPILogRecorder.Type.RESPONCE,
            json = "{\"Info\":{\"User\":{\"nickName\":\"taro\",\"level\":8,\"Link\":{\"Email\":[],\"Social\":[]}}},\"additional\":{\"progressMissionList\":[]}}",
        });

        _isWait = false;
    }
Пример #2
0
    public void OnClickSend()
    {
        if (_isWait)
        {
            return;
        }

        _isWait = true;
        ServerAPILogRecorder.Record(new ServerAPILogRecorder.RecordData()
        {
            date = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
            url  = urlInput.text,
            type = ServerAPILogRecorder.Type.POST,
            json = jsonInput.text,
        });

        StartCoroutine(ResponseRoutine());
    }